Question: JAVA QUESTION 2 Harold Cohen is one of the most progressive private higher education institutions. Due to a high demand in computer science and engineering

JAVA

JAVA QUESTION 2 Harold Cohen is one of the most progressive private

higher education institutions. Due to a high demand in computer science and

QUESTION 2 Harold Cohen is one of the most progressive private higher education institutions. Due to a high demand in computer science and engineering studies, the institution offers online classes to prospective students. The following diagram shows the inheritance hierarchy used in developing a course registration system for the institution. public class courseRegistration private String student ID; private String student.Name; private int studentAge; private char student Gender: private int studentType; //1.undergraduate or 2.postgraduate Iormal constructor l/accessor methods Ilmutator method l/printer method // public double calculate Fee () (...) onlineClass - programCode: String - onlineClass(String, String int, char, int, String) + getProgramCode(): String - setProgramCode(String) void calculateFeel): double toString(): String c) Write the main program to perform the following tasks: i. Create an array of ONE HUNDRED (100) onlineClass objects named online. ii. Input and store all information about students into the array iii. Update program code from ENG to COMP for student ID "2017111222". iv. Calculate and display the total fee collected from engineering program for undergraduate students. V. Display the program code enrolled by a student named "Alexander", (10 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!