Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Celsius to Fahrenheit Temperature Table Fahrenheit = ((9/5)*Celsius) + 32 In Week #3, you were given a homework assignment that asked for the user
C++ Celsius to Fahrenheit Temperature Table
Fahrenheit = ((9/5)*Celsius) + 32
In Week \#3, you were given a homework assignment that asked for the user to input a Celsius temperature and the program would then convert the Celsius temperature to Fahrenheit. The mathematical formula used to convert from Celsius to Fahrenheit is F=9/5C+32 this by no means is in c++ format. Make sure to layout the expression correctly. Modify the program from Week \#3 so it uses a WHILE or FOR loop to display a table of the Celsius temperatures from 0 to 25 and their Fahrenheit equivalents. DO NOT ASK FOR ANY INPUT. Just run the program and it should output the below. A few things to make a note on: 1. DO NOT use integers to store the Fahrenheit temperatures. Use double data type. 2. The mathematical (NOT C++) formula to convert from Celsius to Fahrenheit is the following: 9/5C+32, but make sure to modify it to be acceptable for c++. Make sure to use 9.0/5.0 in the formula. 3. Make sure the Fahrenheit temperature are manipulated to display only 1 decimal point. Don't forget to include the iomanip (set width and decimal places) library to be able to do all kinds of manipulations like setting the width, showing decimal places to one. 4. Make sure to set the width for displaying the Celsius temperature to setw(4) and Fahrenheit to setw(12). This will somewhat align the values being displayed. Play with the values. SAMPLE OUTPUT Temnerature Cnnuersion TableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started