Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ The code that was given #include using namespace std; int main() { int test1, test2, test3, minimum, maximum; double average; cout > test1; cout

C++ image text in transcribedThe code that was given #include  using namespace std; int main() { int test1, test2, test3, minimum, maximum; double average; cout > test1; cout > test2; cout > test3; average = (test1 + test2 + test3) / 3.0; if (test1 = test2 && test1 >= test3) maximum = test1; else if (test2 >= test1 && test2 >= test3) maximum = test2; else maximum = test3; cout  

Project #1 The objective of this first project is to see that you can write a program that utilizes functions and incorporates value and reference parameters correctly. Compiler: You may need to refer back to the folder in this module titled Downloading and Installing Microsoft Visual Studio Community 2017 if you need to familiarize yourself with the process to create, edit, comple and run a program. Project Objective: The objective of this project is to review functions. In the link above there is a file attached titled project1.cpp. Open the file and save it as fastname1.cpp (using your own lastnavne). 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. getscores - This function will get three test scores from the user. The function must be a void function and all parameters must be appropriate. 2 calculatoave. This function will calculate the average test score. The function must be a value returning function that returns the average. 3 calculateinmar. This function will calculate the minimum and maximum test score. This function must be a void function and all parameters must be appropriate. 4. display - This function will display the test scores, average, minimum, and maximum. 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 cas. No function (other than main) should call another function . You may choose to change the names of the functions suggested above, but use the four functions described exactly (including one value returning function) . You should use the file naming convention lastname#.cpp for all files in this class. The # represents the project number. So if I was submitting this project, I would name my file sorrentino1.cpp. Your program must contain the following documentation (comments) e comments at the top containing your name and a brief explanation of the program * 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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions

Question

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago