Question: The program continuously prompts users to enter a new course code till one of the below is satisfied: The student enters quit: Go to Payment

The program continuously prompts users to enter a new
course code till one of the below is satisfied:
The student enters "quit": Go to "Payment Calculation"
The total registered credit hours reach the maximum
allowed for their GPA:
A student is allowed to register for a course that is
equivalent to or less than their current year (for
example, a year one student can register for any
course that has a serial number starting with one, such
as ICB103 and IDS102).
When the course level exceeds the student's year, the
program alerts students that they can't register for a
course level higher than their year and allows them to
quit or enter a new course code.
When a course is successfully registered, the system
must display a confirmation message, for example:
'You have successfully registered for course CS101.'
The program should keep a running total of the credit
hours as the student registers for courses (each
course is worth three credit hours).
4.** Payment Calculation:**
After completing the course registration, calculate the
total payment. Each credit hour costs 5,000 AED.
Discount Calculation:
Apply a 20% discount when the student's GPA exceeds
3.0, and they are in year three or above. Then subtract 100
AED more.
Apply a 15% discount when the student's GPA exceeds
3.5, and they are in year two or below.
Display the total credit hours, total payment before the
discount, disCount applied, and the final payment
amount.
The program continuously prompts users to enter a

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 Programming Questions!