Question: C++ LAB 4. Create a lab report in PDF format named it LAB4.pdf and submit. Follow one of the templates given as examples in blackboard.

 C++ LAB 4. Create a lab report in PDF format named

C++ LAB 4. Create a lab report in PDF format named it LAB4.pdf and submit. Follow one of the templates given as examples in blackboard. (5 points). 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

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!