Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that converts a Celsius temperature to its Fahrenheit equivalent (see textbook Page146 #12 ). The formula is given below: C++ fahrenheit =

  1. Write a program that converts a Celsius temperature to its Fahrenheit equivalent (see textbook Page146 #12). The formula is given below: C++

fahrenheit = 9/5 celsius + 32

The program will prompt the user to enter a number for the temperature in degrees Celsius and will read the number. It will calculate the equivalent Fahrenheit temperature using the formula given above. It will display an appropriate main title and then output both the value of the Celsius temperature and its Fahrenheit equivalent. The Fahrenheit temperature will be output formatted to one decimal place.

Note: think carefully when writing the statement in C++ to perform the conversion using the formula above.

Verify your program by calculating by hand, and then by using your program, the Fahrenheit equivalent of the following test data:

  1. 0 degrees Celsius
  2. 22 degrees Celsius
  3. 37 degrees Celsius
  4. 100 degrees Celsius

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

How does financial leverage help stockholders?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago