Question: Write a program that prompts the user to enter his/her name, and how many credit hours he or she has taken and the process to
Write a program that prompts the user to enter his/her name, and how many credit hours he or she has taken and the process to exit the program. Save the name and credits in a list. Access the list by indexing into the list. Provide prompts if data is entered incorrectly. Based on the number of credit hours provided, print a message to the monitor that greets the person by name and states his/her class standing as a freshman, sophomore, junior, or senior based on the definitions below:
| Credit hours earned | Classification |
|---|---|
| 0-29 | Freshman |
| 30-59 | Sophomore |
| 60-89 | Junior |
| 90 and over | Senior |
Run this in a "while True" loop so that the user can test the program with multiple names and credit hours. Exit the program when the user enters a negative number for the credit hours.
Step by Step Solution
There are 3 Steps involved in it
Answer Python code is as follow Initialize an empty list to st... View full answer
Get step-by-step solutions from verified subject matter experts
