Write a program that prompts the user to enter his/her name, and how many credit hours he
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 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.
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart