0% found this document useful (0 votes)
22 views

SOFE 2710U Object Oriented Programming and Design Fall 2022

SOFE 2710U Object Oriented Programming and Design Fall 2022

Uploaded by

Nathan Ouedraogo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

SOFE 2710U Object Oriented Programming and Design Fall 2022

SOFE 2710U Object Oriented Programming and Design Fall 2022

Uploaded by

Nathan Ouedraogo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SOFE 2710U

Object Oriented Programming and Design


Fall 2022

Assignment2
Due date: Nov. 26, 2022, 11:59 pm

Consider the following UML class diagram showing part of a program to manage the
membership information for a professional society:
1- Write the Java version of the classes in the UML diagram.
2- Class Member is an abstract class.
3- The method getFee() is an abstract method.
4- The fee for the standard member is $100 plus tax (13%).
5- The fee for senior members is variable and can be passed to the constructor.
6- The test code should be similar to the following code:

//create the members


Member jane = new StandardMember("Jane","1 queen st. ");
Member mike = new SeniorMember("mike","1 king st. ",60);
Member noah = new SeniorMember("Noah","100 king st. ",40);

//create the society


Society ontarioTech = new Society("ontario Tech");

//add members to the socitey


ontarioTech.addMember(mike);
ontarioTech.addMember(jane);
ontarioTech.addMember(noah);

// create the Managment committee


ManagementCttee managementCttee = new ManagementCttee();

//check if Mike is a senior member in the society


if (mike.isSeniorMember()){
managementCttee.addMember(mike);
}

//add the management committee to the scoiety


ontarioTech.setManagementCttee(managementCttee);

//list all the members in the committee


System.out.println(ontarioTech.listAllMemebrs());

//list all the members in the committee


System.out.println(ontarioTech.getFeeTotal());
Grading Guidelines and Marking Rubrics
1- No late assignments will be accepted, so don't wait until the last minute to start working
on your assignment. Students with no submissions will receive a mark of zero for this
assignment.

2- If a program doesn't compile successfully, a zero mark is assigned for that program; no
partial marks for coding style or documentation for programs that don't compile.

Criteria Marks Description


Program Source Code 3 The program is properly documented
Meaningful variable names, properly formatted source code
Appropriate programming techniques as discussed in class
User Friendliness 2 Program description message.
The program output is presented neatly on the screen.
Functional and correct 5 The program is functional and produces the correct output.
Total 10

Deliverables

• The assignment should be submitted using the Canvas drop box by the due date.
• Copies of the following Java programs should be submitted.
o Member.java
o SeniorMember.java
o StandardMember.java
o Society.java
o ManagementCttee.java
o TestApp.java

• The documentation file is in pdf format, including snapshots of the outputs.


• Do not send other files, like the src folder or class files.

You might also like