Question: in C++ Create a class called Temperature with the following characteristics: a. a private attribute tempC b. a private attribute tempF c. a method called
in C++
Create a class called Temperature with the following characteristics: a. a private attribute tempC b. a private attribute tempF c. a method called convertCelsius that returns the result of the conversion from Celsius to Farenheit, the value to convert will be tempC. d. a method called convertFarenheit that returns the result of the conversion from Farenheit to Celsius, the value to convert will be tempF. e. Create the main that presents the user with a menu asking which conversion he/she wants to do. Then it asks the user to input the value to convert. The main should be able to create an object of the Temperature class, assign values to its attributes and calculate the conversions in the respective measurement and print the results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
