Answered step by step
Verified Expert Solution
Link Copied!

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

1. Your program should request a grade from the user.
a. If the grade is invalid, repeat your request to the user.
2. Append the grade and its numerically equivalent value to two lists defined in your program.
3. Calculate the GPA based on all of the grades that have been input in this session of the program.
4. Print two lines of response to the user:
a.`Your grades are: ______`(include the grades that have been input)
b.`Your GPA is ______`(include the calculated GPA with no rounding)
5. Ask if the user would like to (C) continue or (X) exit
a. If they want to continue, start back at step #1
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the main type of tagging that switches use with trunks?

Answered: 1 week ago