Microsoft Visual studio 2008 professiona...

This is my homework assignment any help is greatly appreciated ! Iam completely lost

Create a program that converts Farenheit Temp to Celsius Temp.The program uses a main function and 3 void functions.

main()function

getFarenheit() funtion

calcCelcius() function

displayCelcius() function

Iam using visual 2008.

Any help is appreciated.

i am trying to write the functions, but i had one problem let me solve it

hey whats up i got it ,,, i hope it will work correctly #include <iostream.h>

/////////////////////////////////float get_cel()

{

float c;

cout << "enter value of celcius : ";

cin >> c;

return c;

}

/////////////////////////////////float get_far()

{

float far;

cout << "enter value of faren : ";

cin >> far;

return far;

}

/////////////////////////////////float far_to_cel(int f)

{

float c =(f-32) * 0.555;

return c;

}

///////////////////////////////////float cel_to_far(int c)

{

float f =(1.8 * c) + 32;

return f;

}

///////////////////////////////////int main (int argc, char * const argv[])

{

float c, f;f = get_far();

cout << endl;

c = get_cel();

cout << endl;

cout << "C = " << far_to_cel(f) << endl;

cout << "F = " << cel_to_far(c) << endl;

return 0;

}

Ask Your Question

Weekly Poll