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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:30, riah133
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
image
Computers and Technology, 23.06.2019 21:40, minnie7760
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
image
Computers and Technology, 23.06.2019 22:00, bb1593
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, gabi83
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
Answers: 2
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 in other subjects:

Konu
Biology, 22.11.2019 07:31