Madeleine Julia

Greenhorn

Posts: 4

posted 9 months ago

Create an object-oriented model of the problem. you should have at least the following classes: Student, Project, Problem and Main.

A student must have at least the properties: name and email. A project must have at least the properties: name and capacity. Each class should have appropriate constructors, setters and getters. The toString and equals methods form the Object class must be properly overridden.

An instance of the problem involves a set of students and projects. A student may be enrolled in at most one project. Each project has a capacity constraint (an upper bound regarding how many students can be enrolled).

Each student has a preference list over the available projects that he/she finds acceptable. Each project's coordinating professor also has a preference list over the students.

We consider the problem of allocating students to projects based on these preference lists and capacity constraints.

Example: 4 students, 3 projects having capacities: c(P1) = 2, c(P2) = 1, c(P3) = 1

A student must have at least the properties: name and email. A project must have at least the properties: name and capacity. Each class should have appropriate constructors, setters and getters. The toString and equals methods form the Object class must be properly overridden.

An instance of the problem involves a set of students and projects. A student may be enrolled in at most one project. Each project has a capacity constraint (an upper bound regarding how many students can be enrolled).

Each student has a preference list over the available projects that he/she finds acceptable. Each project's coordinating professor also has a preference list over the students.

We consider the problem of allocating students to projects based on these preference lists and capacity constraints.

Example: 4 students, 3 projects having capacities: c(P1) = 2, c(P2) = 1, c(P3) = 1

Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |