Question: Using Python: Display the weather forecast to a user based on their menu selection. The weather forecast is stored in two parallel lists or a
Using Python: Display the weather forecast to a user based on their menu selection. The weather forecast is stored in two parallel lists or a two-dimensional list. Each daily forecast includes the high temperature and the conditions. The user will select from a menu display Sunday through Saturday where the user selects the day. The program then displays the forecast for that day.
Examples: User selects Monday. The program displays 56 and Rain Showers. The program then allows the user to select another day for a forecast. User selects Thursday. The program displays 31 and Snow Showers. The program then allows the user to select another day for a forecast.
Goal: Your application will get input from a user, get information from a parallel list, and display it to screen. From a menu, the user will select the day or exit.
Programming Requirements: Your program must include the following concepts:
Functions - you must begin your program with main().
Lists consider the day, temperature, conditions as parallel lists or a two-dimensional list.
Variables data input/output to the user will most likely be stored in variables.
Loops after the displaying the forecast, you need to provide the user a means of viewing the menu again.
Conditions you will use if/else statements to compare values.
Menu your application needs to have a menu of choices (select forecast, exit) with professional formatting.
Exception handling input errors should be handled.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
