The University of Northern California (UNC) Admissions
Calculator allows an admissions officer to enter an applicant's GPA, income,
and
GPA -> 3.0
Income -> 35000
resident? -> yes
The calculator then displays if the applicant should be admitted, and if so, if the applicant should be offered a scholarship or a loan. Here are the rules:
All students with a GPA higher than 3.5 are admitted.
All residents with a GPA higher than 3.0 are admitted.
Non-residents with a GPA between 3.0 and 3.5 and an income higher than $50000/year are admitted
Residents with a GPA higher between 2.5 and 3.0 and an income below $30000/year are admitted.
Residents with a GPA between 2.0 and 2.5 and an income below $15000/year are admitted.
Admitted residents with a GPA higher than 3.0 and an income below $15000/year are offered scholarships.
Admitted residents with a GPA higher than 3.0 and an income between $15000/year and $30000/year are offered loans.
Draw a flowchart representing this logic (optional).
Implement the admissions calculator. Try to make your logic as simple as possible.
Put the entire program in a loop that prompts the user if he wants to continue or quit. (If loops have been covered.)