Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class Relationships: BirthDate Person Comparable 4 Student Registration Date Part Time Student Full Time Student Person lastName: String firstName: String middlelnit: char birth Date: Date

Class Relationships: BirthDate Person Comparable 4 Student Registration Date Part Time Student Full Time Student Person lastName: String firstName: String middlelnit: char birth Date: Date + Person) + Person( lastName : String, fisrtName : String, middlelnit : char, birth Date : Date) + getLastName) : String + getFirstNamel): String + getMiddlelnit(): Char + getBirth Datel): Date + setLastName(String lastName) + setFirstName(String firstName) + setMiddlelnit(char middlelnit) + setBirth Date Date birth Date) + getFullNamel): String //Returns name in lastName, firstName middle init format: eg: Smith, John T. Date year: int month : int day: int + Date(the Year: int, the Month : int, the Day:int) + setYear(int the Year) : void + set Month(int the Month) : void + setDay( int theDay): void + getYear(): int + getMonth(): int + getDay(): int + toString(): String Student student Number : int email : String registrationDate_: Date + Student () + Student (lastName String, firstName : String, middleInit : char, birthDate : Date, student Number:int, email:String, registrationDate:Date) + getStudentNumber():int + setStudent Number (studentNumber:int) //Non negative studentNumber only + getEmaill): String + setEmail (emait:String) + getRegistrationDate) : Date + setRegistrationDate (registrationDate:Date) + compare to (Object o):int //If this student has a larger studentNumber return 1 //If they are the same return 0 //If o has a larger studentNumber return -1 + getTuition ) :float //Abstract method PartTime Student numberofCourses: int + PartTime Student () + PartTimeStudent IlastName:String, fisktName:String, middle Initi chaf, birthDate: Date, student Number:int, email:String, registrationDate: Date numberofcourses:int) + getNumberOfCourses 1): int + set Numberofcourses (numberofcourses int) + getTuition (): float /* This method calculates tuition at $540 / course for students who registered in 2007 or earlier, $630 per course for students who registered in 2008 or later. */ FullTimeStudent insuranceoptout : boolean studentCentreOptout: boolean + FullTimeStudents!) + FullTimeStudents (lastName: String, fisrtName: String, middleInit:char, birthDate: Date, student Number:int, email:String, registration Date: Date insuranceoptout : Boolean, studentCentreOptOut: boolean) + getInsuranceoptout(): boolean + setInsuranceOptOut (insuranceOptout;boolean) + getstudentcentreoptout?): boolean + setStudentCentreOptOut (studentCentreOptout; boolean) + getTuition(): float /* This method calculates tuition at $3650. If the student opts out of the Insurance plan they receive a $300 discount. A $200 discount is received by students who opt out of student centre membership */?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entrepreneurship

Authors: Andrew Zacharakis, William D Bygrave

5th Edition

1119563097, 9781119563099

More Books

Students also viewed these Programming questions