A college has two types of student: full-time and part-time. All students have their name and date
Question:
A college has two types of student: full-time and part-time.
All students have their name and date of birth recorded.
A full-time student has their address and telephone number recorded.
A part-time student attends one or more courses. A fee is charged for each course. The number of courses a part-time student attends is recorded, along with the total fee and whether or not the fee has been paid.
The college needs a program to process data about its students. The program will use an object-oriented programming language.
a) Copy and complete the class diagram showing the appropriate properties and methods.
b) Write program code:
i) For the class definition for the superclass Student.
ii) For the class definition for the subclass FullTimeStudent.
iii) To create a new instance of FullTimeStudent with:
– Identifier: NewStudent
– Name: A. Nyone
– Date of birth: 12/11/1990
– Telephone number: 099111
Step by Step Answer:
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams