Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the following exercises with a partner in class in IDLE. Turn in your code on Canvas the night before the next class. You may

image text in transcribed
Complete the following exercises with a partner in class in IDLE. Turn in your code on Canvas the night before the next class. You may work with 1 to 2 partners, but each student must submit their own work. If you finish the exercise before class time is over, show your work to the instructor before leaving (but still turn it in on Canvas). Specify the NetID of any partners you worked with in the Header Comment 1. Complete the following parts to produce a program that converts temperature values in Fahrenheit to Celsius, and then displays a message based on the temperature: a. Write a python statement that creates a variable called temp_fahr and assigns it to user input. This input should ask the user for the current temperature in Fahrenheit. This line should also convert the entered temperature to a float. b. Write a python statement that computes the Celsius equivalent of the temperature in Fahrenheit (if you do not know the equation, Google is your friendl). The computed temperature should be stored in a variable called temp_cels. c. Write a statement that outputs the temperature in Fahrenheit AND the temperature in Celsius. For example, if the user enters 70 as the temperature in Fahrenheit, then the program could output "70.0 "F is 21.11111111111111 "C". d. Write a structure of if statements chained together with elif/else statements: If temp_fahr is less than or equal to 32: Output "It is freezing outside. Wear a warm jacket!" If temp_fahr is less than or equal to 60: Output "It is chilly outside. Wear something that covers your arms and legs." If temp_fahr is less than or equal to 80: Output "It is warm outside. Nice weather for a walk!" If temp_fahr is less than or equal to 100: Output "It's hot. Beach Party? Don't forget your lotion!" If none of the above is true: Output "The temperature is extremely hot. Be cautious of heat strokes

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_2

Step: 3

blur-text-image_3

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago