Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using functions, develop a full C++ structured program that asks the user for his choics:1 or 2. If the choice is 1, then your program
Using functions, develop a full C++ structured program that asks the user for his choics:1 or 2. If the choice is 1, then your program will convert the entered Fahrenheit (F) temperature to Celsius (C). If the choice is 2, then your program will convert the entered Celsius (C) temperature to Fahrenheit (F). use the following functions:
- getTemp: read the temperature from the user - getChoice: read the user choice: 1 or 2 NOTE: only 1 or 2 are allowed, if not, then give an error message warning for three times, then exit the whole program with a message if the problem persists.
- convertToF: converts Celsius to Fahrenheit F= (9/5) * C + 32
- convertToC: converts Fahrenheit to Celsius C= (5/9) * (F - 32)
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