Write a C++ program that can print a temperature conversion table. The program s
ID: 3631512 • Letter: W
Question
Write a C++ program that can print a temperature conversion table. The program should ask the keyboard operator if a Fahrenheit-to-Celsius table is to be produced or a Celsius-to-Fahrenheit table should be produced. The program should also ask for the beginning and ending temperatures for the table to be produced. Note the formulas are c=(f-32)*5/9 and f=(9*c/5)+32. Ask for direction of conversion (c to f or f to c). If program is to use Celsius to Fahrenheit, then use formula F=(C * 5) /9 and add 32. If program is to use Fahrenheit to Celsius then the formual is C=(F-32)*5/9 + 32. Get the starting and ending temperatures. Create a loop to print each temperatureExplanation / Answer
#include main() { int ch;float min,max ; float c,f; coutch; coutmin; coutmax; if(ch==1) { 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.