Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project # 1 Instructions Objective: The objective of this project is to review functions. Use the file attached, Project 1 . cpp , to start

Project #1 Instructions
Objective: The objective of this project is to review functions. Use the file attached,
Project1.cpp, to start this project. Open the file and copy it into your main.cpp in
Replit. Revise the program so that it contains the functions listed as follows. You must
follow the specifications for each function exactly to demonstrate to me that you can
write both void functions and value returning functions and use value and reference
parameters appropriately.
1. getTemps - This function will get four temperatures from the user. The function
must be a void function and all parameters must be appropriate.
2. calculateTotalAve - This function will calculate the total and average of the
temperatures. The function must be a void function and all parameters must be
appropriate.
3. calculateLowTemp - This function will calculate the lowest temperatur. This
function must be a value returning function and all parameters must be
appropriate.
4. display - This function will display the temperatures, total temperature, average
temperature and lowest temperature. This function must be a void function and
all parameters must be appropriate.
Project Requirements (all must be included to receive full credit):
The main program should be made up a series of function calls. No function
(other than main) should call another function
All function definitions should follow the main program and have prototypes prior
to the main program
You may choose to change the names of the functions suggested above, but use
the four functions described exactly (including one value returning function)
Your program must contain the following documentation (comments):
o comments at the top containing your name and a brief explanation of the
program
o comments prior to each function definition explaining the purpose of the
function

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

More Books

Students also viewed these Databases questions

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

5. Describe how contexts affect listening

Answered: 1 week ago