Write a program to convert between centigrade and fahrenheittemperatures. Your s
ID: 3615117 • Letter: W
Question
Write a program to convert between centigrade and fahrenheittemperatures. Yoursolution must utilize functions to perform the conversions. Yourfunctions must
meet these requirements:
1. One of the functions must use pass-by-value, returning theconverted
measure
2. One of the functions must use pass-by-reference to store itsresult (the
function does not have a return value).
Your program must create two tables - one showing the centigradeequivalent to
fahrenhrit measures from 0 degrees centigrade to 100 degreescentigrade (by 5
degree increments: 0, 5, 10, . . . , 100) and the other showingfahrenheit
equivalent to centigrade measures 0 through 100 (by 5 degreeincrements: 0, 5,
10, ... , 100). Original measures are all integer values.Calculated measures are to
be displayed accurate to two decimal places. The output for bothtables must fit on
one default screen (78 columns by 22 rows), so your tables willneed to be
organized into multiple columns. Everything must be lined up nicelyand the tables
neatly and informatively labeled.
This assignment can be done with a single file. It is not necessaryto define any
classes.
Explanation / Answer
#include using std::cout;using std::endl;#include using std::setw;using std::fixed;using std::setprecision;float cent(float); // function prototypefloat fahr(float); // function prototypeint _tmain(int argc, _TCHAR* argv[]){// display table coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.