This assignment will be to write a temperature conversion


Assignment

When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output.

This assignment will be to write a temperature conversion program that interacts with the end user - using the guidelines and sample output below.

Program: 20 points - temp.cpp

Write a program that will do the following:

? Use a function that will prompt the user for their name, returning the name back to the calling function.

? Use a function that will prompt the user for the current temperature outside in Celsius, when you prompt the user make sure to reference the user by their name, returning the temperature in Celsius back to the calling function. (you will need to pass the name to this function)

? Use a function that will convert the temperature in Celsius to Fahrenheit, returning the new Fahrenheit temperature back to the calling function.

? Use a function that will print out the results of the Celsius to Fahrenheit conversion, referencing the user by their name - returns nothing.

Example program run:

(1st function)

Please enter your full name: Michael Bradley

(2nd function)

Hello Michael Bradley, please enter the current temperature outside in Celsius: 31.6 (3rd function calculates the C → F temp - no output produced)

(4th function displays the results)

Michael Bradley, your temperature outside in Fahrenheit is: 88.88

Another run without references to what function is what - this is what your run should resemble: Please enter your full name: Karissa Smith
Hello Karissa Smith, please enter the current temperature outside in Celsius: 2 Karissa Smith, your temperature outside in Fahrenheit is: 35.6

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: This assignment will be to write a temperature conversion
Reference No:- TGS01724105

Now Priced at $45 (50% Discount)

Recommended (93%)

Rated (4.5/5)