ETT 215 Quiz Name: (o rollow these steps t Follow these steps to write a main pr
ID: 3758095 • Letter: E
Question
ETT 215 Quiz Name: (o rollow these steps t Follow these steps to write a main program and a function which converts Celsius steps to write a main program and a fiunction which converts Celsias temperature to Fahrenheit: . The function takes real value and returns real value. Declare the function prototype. Write a main program where user inputs Celsius temperature and makes the function call in a for' loop 10-times. Write the function. The Fahrenheit temperature is printed 10-times in the main program. · F=C*9.0 / 5.0 + 32Explanation / Answer
#include<stdio.h>
float celciusToFarenhite(float celcius)
{
return ((9.0/5.0)*celcius)+32;
}
int main()
{
float celcius;
for(int i=0;i<10;i++)
{
printf("Enter the temperature in celcius : ");
scanf("%f",&celcius);
printf("Temperature in farenhite is %f ",celciusToFarenhite(celcius));
}
return 0;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.