Instructions

Write an application to be used in a college admissions office. To be admitted to this school, the student must have either:

  • A grade point average of 3.0 or higher and an entrance score of 60 or higher
  • An entrance score of 85 or higher and any grade point average

To make things more user friendly, write some code to do some error checking of the data. That is, if the grade point average is not between 0.0 and 4.0 or if the entrance score is not between 0 and 100, then print an appropriate error message to the screen telling the user that they entered invalid data.

Use the above criteria to write a procedure called, accepted, that takes the grade point average and entrance score as parameters and returns no value. This procedure will print either "Accept" or "Reject", accordingly.

Finally, write a main procedure that prompts the user for a grade point average and an entrance score. This procedure should then call the accepted method to display the result.

Although your output is not required to look this way, sample output from your program may look something like:

Welcome to the Admissions Department.
Please enter your grade point average: 2.9
Please enter your entrance score: 86
We are pleased to accept you at our school.

Running the program a second time, might look like:

Welcome to the Admissions Department.
Please enter your grade point average: 2.9
Please enter your entrance score: 115
You have entered an invalid value.
Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.