2. Celsius Temperature Table The formula for converting a temperature from Fahre
ID: 3760518 • Letter: 2
Question
2. Celsius Temperature Table
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 rable of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents. Please write the pseudocode,then code.thnx
Explanation / Answer
#include float celsius(float fahrenheit) { return (5.0/9) * (fahrenheit-32); } int main() { int loop=20; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.