Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Harold Cohen is one of the most progressive private higher education institutions. Due to a high demand in computer science and engineering studies, the

Java image text in transcribed
image text in transcribed
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 course Registration private String studentID; private String studentName; private int studentAge; private char student Gender; private int studentType; //1.undergraduate or 2.postgraduate lormal constructor llaccessor methods //mutator method l/printer method //public double calculateFee () ...) } onlineClass - programCode : String + onlineClass(String, String, int, char, int, String) + getProgramCode(): String + setProgramCode(String): void + calculateFee(): 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. ii. 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

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago

Question

What did they do? What did they say?

Answered: 1 week ago