Write a temperature conversion program

Assignment Help C/C++ Programming
Reference no: EM131321452

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

Reference no: EM131321452

Questions Cloud

What is the maximum you can afford to borrow : Your spouse needs a car and you believe you can afford no more than $350 a month for a 5-year car loan. If the interest rate on this loan is 5% percent, what is the maximum you can afford to borrow to purchase this car?
What levels of evidence are present in relation to research : What levels of evidence are present in relation to research and practice and why are they important regardless of the method you use
The risky asset as function of the standard deviation : Mr. K can invest the profits from his business either in a safe asset that has a return of 10% and no deviation from that return, or a risky asset with an expected return of 30% with a standard deviation of 10%. Write an equation showing the expected..
Rating for city of indianapolis debt : In March 1982, Moody s lowered its rating for City of Indianapolis debt from Aaa to Aa. Which of the following would result from that change?
Write a temperature conversion program : This assignment will be to write a temperature conversion program that interacts with the end user - using the guidelines and sample output below.
Determine standard deviation of the expected return : Following are three economic states, their likelihoods, and the potential returns: Economic State Probability Return Fast growth 0.17 21 % Slow growth 0.50 10 Recession 0.33 –21 Determine the standard deviation of the expected return.
Study the various forms of activism : Software rating, although helpful in bringing awareness to concerned individuals, has not been successful. Discuss why.
Assume that average firm in the office supply business : Assume that an average firm in the office supply business has a 6% profit margin, a 40% total liabilities/assets ratio, a total assets turnover of 2 times, and a dividend payout ratio of 40%. Is it true that if such a firm is to have any sales growth..
Human genome stock that has assumed beta : You own $19,175 of Human Genome stock that has an assumed beta of 3.91. You also own $11,700 of Frozen Food Express (assumed beta = 1.83) and $1,625 of Molecular Devices (assumed beta = 0.82). What is the beta of your portfolio?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Execute the next line which is enter your last name

C++ in VS and I'm trying to run the following program. As soon as I put in my name after the 2nd cout statement, the program ends.

  Write the class definition for a class called complex

. Write the class definition for a class called complex.

  Multiply a set of complex numbers

Write a C program to multiply a set of complex numbers stored in an array (that has been dynamically allocated). Specifically, first prompt the user to enter how many complex numbers need to be multiplied, dynamically create an array to store the ..

  C++ code to find the greatest common divisor

C++ Code to find the Greatest common divisor between two numbers.

  What are overloaded methods

Overloaded methods for the operations of adding, subtracting, multiplication, and division will need to be created requiring one or two arguments. The single argument is added to, subtracted from, divided over, or multiplied by the running answer...

  Create a loop to print a table with all the characters

Create a loop to print a table with all the characters in the user's full name and their corresponding ASCII value. You may use the charAt() method of the String class to identify each of the characters in the full name and type cast them as int t..

  What is the estimated net operating income

What is the estimated net operating income for July, if the company always uses an estimated predetermined plantwide overhead rate of $7 per direct labor-hour?

  Implement the selection sort method

Write a C program that implements the Selection sort method to sort a given array of integers in ascending order.

  State diagram to recognize one form

Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */. and also Write and test the code to implement the state diagram.

  Write a program to simulate lines in a grocery store

Write a program to simulate lines in a grocery store. We want to determine what line configuration is best

  Differences between if/else selection and switch selection

What do you need to analyze when directing the flow of information in each case?

  A real-life plc programming task

In lieu of a final exam, you are required to complete a final, capstone project for this course. The final project ties together everything covered in the course and offers you the opportunity to apply what you have learned to a real-life PLC program..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd