Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c++ language Part 1: Write a program that prompts the user for 3 temperature values in Celsius, finds the average of the 3 values

using c++ language

Part 1:

Write a program that prompts the user for 3 temperature values in Celsius, finds the average of the 3 values and displays the average in both Celsius and Fahrenheit.

Part2:

Start with the average(Celcius) you calculated in the above program.

Use a loop(WHILE) to display a well-formatted table of the temperatures starting from the average to +/-10 temperature values.

Format your output values in fixed-point notation, with two decimal places of precision, and be sure the decimal point is always displayed and aligned.

Example: if the average of 3 temperature = 27 degrees Celsius. Display table for Celsius values ranging from 17 to 37 with corresponding Fahrenheit temperatures.

Celsius to Fahrenheit Formula: Celsius divide by 5, multiply by 9, then add 32.

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_2

Step: 3

blur-text-image_3

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

Students also viewed these Databases questions

Question

What are the main components of a database system?

Answered: 1 week ago