Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Get input and output using cin and cout Create a program that: Converts temperatures from Fahrenheit to Celsius o Asks the user for a Fahrenheit

Get input and output using cin and cout

Create a program that:

Converts temperatures from Fahrenheit to Celsius

o Asks the user for a Fahrenheit temperature

o Uses the formula C = (F 32) * 5 / 9 to calculate the Celsius conversion of the Fahrenheit temperature

Prints the Celsius equivalent of the given Fahrenheit

Program output should look something like this:

Enter a temperature in degrees Fahrenheit:

98

The temperature is 36 degrees Celsius

press any key to continue

Extra:

modify the program to ask which conversion to do: Fahrenheit to Celsius, or Celsius to 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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

What is the objective of a transaction log?

Answered: 1 week ago