Write the pseudo code for the following: The formula for converting a temperatur
ID: 3765967 • Letter: W
Question
Write the pseudo code for the following: The formula for converting a temperature from Fahrenheit to Celsius is C = 5/9(F-32) Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function named Celsius that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.
PLEASE I JUST WANT THE "pseudo code"
Explanation / Answer
1. Celsius(fahrenheit)
2. return 5.0 / 9 * (fahrenheit - 32)
3. for i -> 0 to 20 do
4. C = Celsius(i)
5. Display (i, C).
6. done.
If you have any further queries, just get back to me.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.