Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Your program should request a grade from the user. a . If the grade is invalid, repeat your request to the user. 2
Your program should request a grade from the user.
a If the grade is invalid, repeat your request to the user.
Append the grade and its numerically equivalent value to two lists defined in your program.
Calculate the GPA based on all of the grades that have been input in this session of the program.
Print two lines of response to the user:
aYour grades are: include the grades that have been input
bYour GPA is include the calculated GPA with no rounding
Ask if the user would like to C continue or X exit
a If they want to continue, start back at step #
b If they want to exit, terminate the program
c If they respond with unexpected input, repeatedly ask if they would like to continue or exit
Hints
Remember the importance of variable scope. Your program should not include any "global" variables. Any information needed by a functio
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started