Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

For remote access, it’s often better to use a Command Line Interface (CLI), rather than a Graphical User Interface (GUI). A CLI does not use a mouse. However, a program can interact with the user vi

For remote access, it’s often better to use a Command Line Interface (CLI), rather than a Graphical User Interface (GUI). A CLI does not use a mouse. However, a program can interact with the user via a menu driven interface. In this assignment, you will implement a menu driven interface for maintaining a list of scores. You will also use the try/except and if/else constructs to prevent the program from crashing, no matter what the user enters.

Your program should provide a menu driven interface in which the user can do the following:

Choose to exit

Choose to display the scores from highest to lowest values.

Choose to add a score to the list. Note that scores must be floating point numbers.

Choose to display the highest, lowest and average score.

Your program should demonstrate secure software best practices as follows:

Use the try/except construct to catch invalid scores, such as “Harry”. That is, a score must be a number.

Use the if/else construct to ensure that the score entered is between 0 and 100.

For computing the average score, first compute the total using a for loop.

To get the highest and lowest score, sort the list and use indexing. The len() function to get the number of scores in the list. To get the index of the last score in the list, subtract one from the length.

Provide the user with useful information. If an invalid value is entered, say why. Display a correctly worded list of menu selections. The point is, don’t leave the user guessing.

Use the print format specifier to limit the number of digits to the right of the decimal point to one for the scores displayed.

Show more
  • @
  • 22 orders completed
ANSWER

Tutor has posted answer for $20.00. See answer's preview

$20.00

**** *** *** ***** attached ** **** ** ************* ** **** if you **** *** issue in **** * will ** happy to ******* **********

or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question