Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 + 32

Explanation / 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;

}