Question: 3. Create a C++ program named lab4_3.cpp that asks a user to enter the number of scores they would like to enter. Then, the program

3. Create a C++ program named lab4_3.cpp that asks a user to enter the number of scores they would like to enter. Then, the program will determine the average of the scores. Note I want you to use a loop, rather than using the formula 2n(n+1). A sample run of your program might look like this. Note that the numbers highlighted in bold are user's inputs. Enter the number of scores: 4 Enter a score: 3 Enter a score: 9 Enter a score: 5 Enter a score: 2 The average of 4 scores is 4.75 This is another sample run of your program. Enter the number of scores: 3 Enter a score: 2.5 Enter a score: 10 Enter a score: 3 The average of 3 scores is 5.17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
