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, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word β€œforeshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
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, 09.02.2021 01:00
question
Business, 09.02.2021 01:00
question
Spanish, 09.02.2021 01:00
question
Mathematics, 09.02.2021 01:00