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
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?
|