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());