Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ use while loop 2. Write a program that will prompt for and read in a list of test scores (integers in the range 0100

C++
use while loop
image text in transcribed
2. Write a program that will prompt for and read in a list of test scores (integers in the range 0100 ) from the user and will determine and print out: 1. The total number of test scores entered. 1. The maximum of the test scores entered. 2. The miniman of the test scores entered. 3. The average of all of the test scores entered. Assume that the user enters a negative sentinel value to indicate "end of data entry". Do not assume that the user knows how many numbers are to be entered. Here is an example of what output should look like from running your program (user input is shown in bold): Enter score 1:82 Enter score 2: 72 Enter score 3: 65 Enter score 4: 58 Enter score 5: 91 Enter score 6: 69 Enter score 7: 89 Enter score 8: 1 You entered 7 scores. Maximum score =91 Minimum score =58 Average score =75.1429

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago