Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program where the user is given the option to choose 1 of 5 choices. The program is run according to which number

Write a python program where the user is given the option to choose 1 of 5 choices. The program is run according to which number is chosen.

choice 1: Give the option for the user to choose how many numbers they want to calculate the average for, and then find the average.

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. 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. When the user enters the temperature in F and then converted to C, and then the option is given for what to wear.

choice 3: 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. The area is calculated and then outputted.

choice 4: The user is given a choice to either convert from Celsius to Fahrenheit or vice versa. The user will be asked to enter in a degree and then the appropriate values are calculated and outputted.

choice 5: The user is given a goodbye message before being given the option to exit. The user is given the option to stay in the program or exit.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago