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 earnedClassification
0-29Freshman
30-59Sophomore
60-89Junior
90 and overSenior

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

1 Expert Approved Answer
Step: 1 Unlock

Answer Python code is as follow Initialize an empty list to st... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!