Question: You are to make a program which has a menu. The user is given the option to choose 1 of 5 choices. The program is

  1. You are to make a program which has a menu.  The user is given the option to choose 1 of 5 choices.  The program is run according to which number is chosen.   
  2.  
  3. For choice #1, the user can calculate the average of 5 numbers after being prompted to enter in 5 numbers.  Challenge:  Give the option for the user to choose how many numbers they want to calculate the average for, and then find the average.   
  4.  
  5. For choice #2, the user will be given an option to dress according to the weather.  The user will be prompted to enter in a temperature in °C, and then a corresponding message will be outputted.  For example, if the weather is less than °0, the user will be told to wear a winter jacket, hat and gloves.  If the weather is between °0 and °15, the user will be told to wear a fall jacket, a scarf and rain boots.  If the weather is greater than °15, the user is told to wear a t-shirt, shorts and running shoes.  Challenge:  The user enters the temperature in °F and then converted to °C, and then the option is given for what to wear.   
  6.  
  7. For choice #3, the user will be asked to enter in a length and a width of a rectangle.  The area is calculated and then outputted.  Challenge:  The user is given a choice for calculating the area of a rectangle, circle or triangle and then the user is asked input appropriate values.   
  8.  
  9. For choice #4, the user will be asked to enter in a degree in Celsius and then degrees Fahrenheit is calculated and outputted.  Challenge:  The user is given a choice to either convert from Celsius to Fahrenheit or vice versa.  Then the appropriate values are calculated and outputted. 
  10.  
  11. For choice #5, the user is given a goodbye message before being given the option to exit.  Challenge:  The user is given the option to stay in the program or exit.      
  12.  
  13. Sample Output:    Main Menu 
  14.         Please choose 1 of the 5 options below: 
  15. Calculate the Average
  16. Weather Program
  17. Calculate the Area
  18. Convert between Celsius & Fahrenheit
  19. Exit the program
  20.  

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python program that implements the menu with the specified options and challenges ... 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!