Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Shaun is an HVAC technician who works on air conditioning equipment around the world Since he works outside, he often needs to have a good
Shaun is an HVAC technician who works on air conditioning equipment around the world Since he works outside, he often needs to have a good indication of the weather report. Depending on the country that Shuan is in: the temperature may be presented in Celsius or Fahrenheit. Create a C++ Program that will convert a temperature given in Celsius to Fahrenheit and vice versa based upon the user's decision. Create a Folder call In the folder, Create a New C++ Source file called Temperature_Converter_YourFirstName_YourLastName.cpp In the comments at the top of the program, put your name, coursename, teacher name, and the date. Use a mult-line comment. Using a search engine, research the respective formulas for Celsius or Fahrenheit conversion and vice versa. Accept Input from the user in a variable called decision. *IF decision = 'F' then the calculation block should be for Celsius to Fahrenheit conversion. *ELSE IP decision = 'C', then the calculation block should be for Fahrenheit to Celsius conversion *ELSE there was an error. The user did not provide a proper F or C decision Output a message of this error. Be sure to use cout statements that let the user know what the expected input is and what the output result is: *Please enter 'F' for Celsius or Fahrenheit conversion and 'C' for Fahrenheit to Celsius conversion You have decided to convert to _______ Please Enter your _______ temperature: * Calculate Conversion Output Calculated value "Your converted temperature is _______" Test your program with multiple decisions, and multiple temperatures. You might perhaps look for an online converter to test the accuracy of your information being presented. Set the precision of the outputted numbers to 4 decimals places; hint iomanip library Make the program loop until the user enters an exit condition. 'Y' or y is "yes" to continue 'N' or 'n' is no to exit the program. Can you prevent the user from breaking your program if they enter an alphabetical character instead of a number...? If not, your points will be reduced on this program
Step 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