Question: C++ coding assignment Write a program that reads in five test scores. The program should them calculate the average for the five tests and display

C++ coding assignment

C++ coding assignment Write a program that reads in five test scores.

The program should them calculate the average for the five tests and

Write a program that reads in five test scores. The program should them calculate the average for the five tests and display the average using fixed formatting with one digit of precision For example, assume the input scores are 80 90 100 82 93.0 The average should be output as follows Average 89.0 The output must contain "Average: "and then the number in fixed format with one digit of precision. Failure to follow the requirements for lab lessons can result in deductions to your points, even if you pass the validation tests. Logic errors, where you are not actually implementing the correct behavior, can result in reductions even if the test cases happen to return valid answers. This will be true for this and all future lab lessons. This is the last time this warning will be included in the labs, but it will apply to all future lab lessons LAB ACTIVITY 2.26.1: Lab Lesson 3 (Part 1 of 3) 0 20 lesson3part1.cpp 1 #include 2 using namespace std; 4 int main() 8 int random_int[10]; 9 double average; 10 int sum-0 12 13 14 15 16 17 18 19 for(int i-e; i

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!