write a program that gives a value of a certain temperature in rankine given a certain temperature in fahrenheit. program must be interactive such that the program will ask for the value of the temerature in fahrenheit. additionally the program must utilize functions such that given a value in fahrenheirt, it will return the value for rankine
write a program that gives a value of a certain temperature in rankine given a certain temperature in fahrenheit. program must be interactive such that the program will ask for the value of the temerature in fahrenheit. additionally the program must utilize functions such that given a value in fahrenheirt, it will return the value for rankine
The SOP on this site is that you give us your attempt and we help you with it.
It's a program written in C language. float convert(float* temp) { float rankine; rankine=temp/460.67; return rankine; } main() { float temp,ran; printf("Enter temperature in fahrenheit ." scanf("%f",&temp); ran=convert(temp); Printf("Converted temperature from Fahrenheit to Rankine is %f ",ran); }
C++ or C#
c language.. or c++
Join our real-time social learning platform and learn together with your friends!