Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions