Question: Specification This program must prompt the user for a temperature in Fahrenheit, convert that temperature to Celsius and print the Celsius temperature. The Celsius temperature
Specification
This program must prompt the user for a temperature in Fahrenheit, convert that temperature to Celsius and print the Celsius temperature.
The Celsius temperature must be an integer.
Then the program must print a blank line.
The program must now prompt the user for a temperature in Celsius, convert that number to Fahrenheit and print the Fahrenheit temperature.
The Fahrenheit temperature must be an integer
You will find conversion formulae here and here.
Suggestions
Write this script in stages, testing your script at each step
Write an assignment statement which asks the user for a temperature in Fahrenheit.
Write a print statement to print out the Fahrenheit value.
Save the file and quit.
Run the script to make sure it works properly.
If it does not work, fix the problem.
Write an assignment statement that calculates the Celsius temperature using the value of the Fahrenheit temperature.
The left hand side of the assignment statement should be a variable that will hold the Celsius temperature, while the right hand side is a formula to that calculates the Celsius temperature using the Fahrenheit variable.
Write a print statement to print the Celsius value.
Save the file and quit.
Run the script to make sure it works properly. A Fahrenheit value of should give a Celsius value of
If it does not work, fix the problem.
Repeat the above steps for the Celsius to Fahrenheit conversion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
