Question: Upload and submit a program you create for each of the following problem statements. Use the name in parentheses for the filename. ( You should

Upload and submit a program you create for each of the following problem statements. Use the name in parentheses for the filename. (You should also save a copy for yourself for future reference. Using good program names is part of program documentation. It would be much easier to find a temperature conversion program from earlier in the course if it is named temperature.cpp than lab2-3.cpp.) Use comment statements to add your name, date, and description of the program to the top of the program.
(days.cpp) Write a program that takes a number of days as input and outputs the number of equivalent hours. A run through of the program should look something like this: 5 points - your name is commented on the program
5 points - the date is commented on the program
10 points - correct use of cout and cin statements.
10 points - correct output
(gallon.cpp) The program will accept an input value in US liquid gallons and output the equivalent values for US measurements in quarts, pints, and fluid ounces. Note there will be 3 outputs. Use the formula quarts = gallons *4. Lookup the other formulas for assignment statements needed.
5 points - text file submission uploaded with .cpp file extension
5 points - user friendly input prompt using cout and cin statements
5 points - correct output using cout for quarts
5 points - correct output using cout for pints
5 points - correct output using cout for fluid ounces
5 points - user friendly output using literal strings
(temperature.cpp) Write a program that converts a temperature input in degrees Celsius (C) into degrees Fahrenheit (F) using the formula:
F=(9/5) C +32
10 points - user friendly input prompt for Celsius using cout and cin statement pair
10 points - correct conversion of given formula to C++
10 points - correct output for Fahrenheit degrees
10 points - user friendly output using literal stringsConvert days to hours
Enter the number of days:2
2 days is the same as 48 hours.
 Upload and submit a program you create for each of the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!