Question: 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
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;
}

C++ programming 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 a) Conversion from Fahrenheit to Celsius b) Conversion from Fahrenheit to Kelvin c) Conversion from Fahrenheit to Rankine Output: Please choosing one of the following 1. Conversion from Fahrenheit to Celsius 2. Conversion from Fahrenheit to Kelvin 3. Conversion from Fahrenheit to Rankine 4. End the program Enter number: 1 Enter Fahrenheit temperature: 0 32 Celsius Please choosing one of the following 1. Conversion from Fahrenheit to Celsius 2. Conversion from Fahrenheit to Kelvin 3. Conversion from Fahrenheit to Rankine 4. End the program Enter number: 4 End the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!