# Iam new to c++ and I need help with my homewo

Microsoft Visual studio 2008 professiona...
November 2, 2010 at 07:35:43
Specs: Windows Vista
 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()functiongetFarenheit() funtioncalcCelcius() functiondisplayCelcius() functionIam using visual 2008. Any help is appreciated.

See More: Iam new to c++ and I need help with my homewo

#1
November 8, 2010 at 22:44:49
 i am trying to write the functions, but i had one problem let me solve it

Report •

#2
November 10, 2010 at 12:55:18
 hey whats up i got it ,,, i hope it will work correctly #include /////////////////////////////////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;}

Report •
Related Solutions