Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ language please and dont forget the flowchart. Thank you so much 8. (12.5 pts) Convert temperature: Create a flowchart. Then write, compile, and test

C++ language please and dont forget the flowchart. Thank you so much image text in transcribed
8. (12.5 pts) Convert temperature: Create a flowchart. Then write, compile, and test a C++ program that uses a switch structure where the user is prompted to enter a temperature and a unit (c, C, f, or F). If the temperature is entered in degrees Fahrenheit it should be converted to degrees Celsius. If the temperature is entered in degrees Celsius it should be converted to Fahrenheit. Hint: Read the temperature as a double and the unit as a char. Example: Input: 35.2c Output: 35.2 degrees C=95.4 degrees F - Use the format specified earlier (initial block of comments with TCC logo, name, description, etc.) - Give clear instructions so that the user knows what to enter. - The output should display the result in both degrees C and degrees F as real numbers. - The program should print an error message if an invalid unit is entered. - Test the program for the 7 inputs shown below. 0c 100C 25.2c 32f 212F 65.4F - Any number followed by an invalid letter - Turn in a printout of the program and printouts of the 7 test cases

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 Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions