subject

CMSY 156 - Lab 4 Please submit .py files as well screenshot of the outputCreate a program with the following functions (remember to define the functions before calling them): 1.Fahrenheit to Celsius – fahr2Celsius(fahr_temp)a. Argument – temperature in Fahrenheit b. Return value – temperature in CelsiusFormula: (Fahrenheit – 32) * 5 / 9 2.Celsius to Fahrenheit – cels2Fahrenheit(cels_temp)a. Argument – temperature in Celsiusb. Return value – temperature in Fahrenheit Formula: (9/5) * Celsius temp + 32.Program steps:1.Input and processing: a. Prompt the user for the type of temperature conversion to make and determine which function to call: C (fahrenheit to celsius), F (celsius to fahrenheit)Note: See the screen shots below for examples of program input and outputi. For an input of C (fahrenheit to celsius) 1.Prompt the user for the fahrenheit temperature to convert 2.Call the fahr2Celsius function passing as an argument the fahrenheit temperature enteredii. For an input of F (celsius to fahrenheit)1.Prompt the user for the celsius temperature to convert2.Call the cels2Fahrenheit function passing as an argument the celsius temperature enteredb. Store the converted temperature value returned from the called function (use in step 2 below) CMSY 156 - Lab 4 Please submit .py files as well screenshot of the output2.Output:a. Fahrenheit to celsius: The Fahrenheit temperature and the Celsius temperaturemust be formatted with one decimal place using one of the string formatting techniques, str. format() or f-string, and displayed like the screenshots below. b. Celsius to fahrenheit: The Celsius temperature and the Fahrenheit temperature must be formatted with one decimal place using one of the string formatting techniques, str. format() or f-string, and displayed like the screenshots below.
CMSY 156 - Lab 4 Please submit .py files as well screenshot of the outputRubric: Source code documented using comments (5) Correct request for input values (3) Input on same line as the prompt (1) Correct use of if statements (4) Correct function definitions (10) Correct function calls (5) Correct calculations(5) Correct formatting of output (5) Source code has adequate white space/readability (3) Use given test data (2) program screenshots submitted (2) program executes without error (5)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
You know the right answer?
CMSY 156 - Lab 4 Please submit .py files as well screenshot of the outputCreate a program with the f...
Questions
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Mathematics, 10.09.2020 09:01
question
Social Studies, 10.09.2020 09:01
question
English, 10.09.2020 09:01
question
English, 10.09.2020 09:01
Questions on the website: 13722367