Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

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

Step: 3

blur-text-image

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

$45 is 60% of what amount? 6.

Answered: 1 week ago

Question

2. What is the business value of security and control?

Answered: 1 week ago