Your school would like to develop a program that computes the maximum amount of
ID: 3647026 • Letter: Y
Question
Your school would like to develop a program that computes the maximum amount of financial aid a qualified student is entitled to receive in a semester if the student met certain income and grade piont levels (on a 4.0 system). Specifically, if the student's GPA is at least 2.0 b ut less than 3.0, the student may receive half of the tuition cost in aid. If the student GPA is at least 3.0, the student may receive aid up to all of the tuition cost. Design a program that would get and validate in the main function the following input: 1.- The tuition amount (not exceed 2000) and 2.- The GPA (which must be at least 2.0). Use data validation loops. If the GPA is less than 2.0, outputa message that the student doesn't qualify academically and end the program. Use a value returning function named computerAid that takes two parameters, tuition and GHPA. Set the GPA parameter to a default value of 2.0. The functionwill calculate the amount of financial aid as follows: aid = tuition / 4* GPA.
If the GPA is less than 3.0 or greater, then pass two argumants, tuition and GPA.
Write your design in the following space. For your design, write and algorithm (an english language description of the steps required to successfully complete the task)
Explanation / Answer
initialize Amt, GPA Enter the values of Amt, GPA if the GPA is below two programme ends else it is less than 2 passes the value Amt, GPA to defined function computerAid it calculates the fee to be discounted
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.