Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

Students also viewed these Databases questions

Question

Have issues been prioritized?

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago