Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Allow the user to enter a Fahrenheit temperature to convert or to end the program. 2) The program must have three programmer-defined functions: Option 1:
Allow the user to enter a Fahrenheit temperature to convert or to end the program.
2) The program must have three programmer-defined functions:
Option 1: Conversion from Fahrenheit to Celsius
Option 2: Conversion from Fahrenheit to Kelvin
Option 3: Conversion from Fahrenheit to Rankine
Option 4: exit
Here is my C++ programming so far
using namespace std;
double FahrToCelsius(double Celsius);
double FahrToKelvin(double Kelvin);
double FahrToRankine(double Rankine);
int main()
{
// Declare Variables
double C, F, R, K;
cout
cout
cin >> F;
cout
cout
cout
return 0;
}
double FahrToCelsius(double F)
{
double C=(F-32)*(5/9.0);
return C;
}
double FahrToKelvin(double F)
{
double K=(F+459.67)*(5/9.0);
return K;
}
double FahrToRankine(double F)
{
double R=(F+459.67);
return R;
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started