Question: Some hints: If you need to return several values then arrays can be an option. Since we do not know the number of students and


Some hints: If you need to return several values then arrays can be an option. Since we do not know the number of students and number of grades limit them to a maximum of students and to a maximum of grades. Ex: maximum students 3, maximum grades 4. For testing work with small values. If we change the values, later, it will not affect the logic of the solution. One possibility is to create the array(s) before you call the function and pass the array(s) as argument(s) to the functio
For this lab refer to Program 5-14 page 267-268 of your textbook. You must implement the same program using functions. The functions will need some inputs and return the average score. The average score is displayed after the return of the function. All 4 functions do the same but implement its task using different loops. Function name and definitions must be as follows: . F1 uses only While loops. Test your program with the data input given and displays the outputs. Submit txt file with your c++ code. 20points. F2 uses only do-while loops. Test your program with the data input given and displays the outputs. Submit txt file with your c++ code. 30points. F3 uses only while (Exterior loop), For (interior or inner loop). Test your program with the data input given and displays the outputs. Submit txt file with your c++ code. 25 points. F4 uses only For (Exterior Loop) and while for interior loop. Test your program with the data input given and displays the outputs. Submit txt file with your c++ code. 20points. Note: You may create only one program with the four functions but for every test of your program you comment three and work with one. Example: main.cpp ****** main.cpp 1. /*** 2 When testing for function one F1 3 ********* 4 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
