Question: #include #include #include using namespace std; double CtoF(double start ) { double f=0; f=(9.*start/5.)+32.; return f; } double FtoC (double start) { double c =

#include #include #include using namespace std;

double CtoF(double start ) { double f=0; f=(9.*start/5.)+32.; return f; } double FtoC (double start) { double c = 0; c = (5./9.) * (start-32.); return c; } void displaymenu() { cout << "Please enter one of the following please" << endl; cout << "'C' for celcius to farenheit(C to F)" << endl; cout << "'F' for farenheit to celcius(F to C)" << endl; cout << "Or to Exit the program 'Q'" << endl; } char getMenuSelection() { char choice; do{ cout<<"Enter your choice"<>choice; switch(choice) { case 'c': case 'C':return choice;break; case 'f': case 'F':return choice;break; case 'q': case 'Q':exit(0); default :cout<<"Please choose between the three choices above. "<> start; cout<<"Enter end temperature:"<> end; cout<<"Enter increment value:"<> increment; } void displayTable(double start,double end, double increment,char result) { double i; for(i=start;i<=end;i=i+increment) { cout<

return 0; }

1. Rewrite the above program so that all functions are of void type. Use a reference parameter, temperature, that act as the vehicle in which to pass in the temperature to convert and return the converted temperature, allowing it to be changed within the function..

It's for a C++ class.

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!