hw6

Get a limit (type int) from the user to represent the upper limit of the list. There must be error
checking on the input integer. If it not greater than 2, the program will print an error message
and re-prompt. This process will continue until an integer greater than 2 is entered. You must
use a try-except structure to trap both types of input errors (like letters where numbers should
go) and range errors (like < 2). There must be error checking on the menu choice entered. If the user enters a choice not on the menu, the program will print an error message, re-display the menu and re-prompt. This process will continue until a valid option value is entered. Your solution must be modular. The design of your functions is up to you, but the rules of “highly cohesive” and “loosely coupled” must be followed. Your program should be well-documented. Explain what you’re doing in your code. Be sure to include the usual name and assignment notes. Submit as usual in a ‘.py’ file named with your last name, first initial and ‘hw6.py’.

×
New Download