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

i need to make a program for converting temperature using functionsin dev c++. I

ID: 3613240 • Letter: I

Question

i need to make a program for converting temperature using functionsin dev c++. I suck at programming. would anyone please help thispoor little girl in programming? by the way, my professor wanted usto use the traditional format.

1) make and run a program where u can convertcelcius>fahrenheit>kelvin>rankin
using function/ float

output:
Celcius: ____
= _________fahrenheit
=_________kelvin
=_________rankine

Example output:
Celcius : 100
= 212 fahrenheit
= 373.15 kelvin
= 671.67 rankine

you see, I don't get c++. but I tried this one but it has a lot oferrors in it. like expected primary expression before float in line6. can anyone at least fix it???

#include<stdio.h>
#include<conio.h>
main()
{float c, f, k, r;
{
float (float c) ;
printf( "Celsius:" );
scanf( "%f", &c );
}
{float fahrenheit (float f);
printf( "= %f fahrenheit ", c*9/5+32 );
}
{float kelvin (float k);
printf("= %f Kelvin ", c+273.15);
}
{float rankine (float r);
printf("= %f Rankine ", (c+273.15)*9/5);
}
getch();
return 0;
}

will rate lifesaver!! please please please. :|

Explanation / Answer

//Hope this will help you. #include #include using namespace std; float fahrenheit (float c) { printf( " =%f fahrenheit ", c*9/5+32 ); } float kelvin (float c){ printf(" = %f Kelvin ", c+273.15); } float rankine (float c){ printf(" = %f Rankine ", (c+273.15)*9/5); } main() { float c ; printf( "Celsius:" ); scanf( "%f", &c );         fahrenheit(c);         kelvin(c);         rankine(c);         system("pause"); }