Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that solve the problem below: The Temperature Converter The program should request the user to enter his/her name then repeatedly ask

Write a C++ program that solve the problem below:

The Temperature Converter

The program should request the user to enter his/her name then repeatedly ask to select one of the choices below:

1. Choice 1: Convert Celsius to Fahrenheit using the formula: F = C x 9/5 + 32

2. Choice 2: Convert Fahrenheit to Celsius using the formula: C = (F - 32) x 5/9

3. Choice 3: Exit the Program

The program should read the user input and then display the result or an error message as appropriate, a sample run should appear on the screen like the text below:

Please enter your name:

Albert

Welcome Albert to the Temperature Converter Application

Please type 1 for Fahrenheit to Celsius conversion

Type 2 for Celsius to Fahrenheit conversion.

Or type 3 to exit the program

1

Please enter your temperature in Fahrenheit

86

Computing...

The temperature in Celsius is 30

Please type 1 for Fahrenheit to Celsius conversion

Type 2 for Celsius to Fahrenheit conversion. Or type 3 to exit the program 5 That is not an option. Please type 1 for Fahrenheit to Celsius conversion Type 2 for Celsius to Fahrenheit conversion.

Or type 3 to exit the program

2

Please enter your temperature in Celsius

20

Computing...

The temperature in Fahrenheit is 68

Could you please be kind enough and type the code in detail and show me the screenshot? Thank you and have a good one! :D

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions