Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ PLEASE Program #2 Your second program is a modification of Problem 12 on page 144 of our text (Problem 10, p 144 in the

C++ PLEASE

image text in transcribedimage text in transcribed

Program #2 Your second program is a modification of Problem 12 on page 144 of our text (Problem 10, p 144 in the 7h Edition). In that problem, the user inputs a temperature value in degrees Celsius and the program then calculates the equivalent temperature in Fahrenheit. Let's modify the problem in the following way. Rather than requiring the user to input just a Celsius temperature and then calculating the Fahrenheit temperature from it, let's calculate equivalent temperatures in both directions. In addition, we'll add to the report the equivalent temperature in a third temperature scale, namely, Kelvin. We'll first ask the user for a Celsius temperature and then print a report about both the Fahrenheit and the Kelvin temperatures. The output should like the following: Please enter a number in degrees Celsius: 45.2 The equivalent Fahrenheit temperature is: The equivalent Kelvin temperature is: 113.36 degrees. 318.35 K. Your program will then ask the user to input a number in degrees Fahrenheit and print the equivalent Celsius and Kelvin degrees: Please enter a number in degrees Fahrenheit 45.2 The equivalent Celsius temperature is: The equivalent Kelvin temperature is 7.33 degrees. 280.48 K. And finally, it should ask for a Kelvin temperature and print out the result in Celsius and Fahrenheit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions