Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Somone please help code this (C++) Lab Homework 14 Use while loop allow a user to control when to stop It repeats as This program

image text in transcribed

Somone please help code this (C++)

Lab Homework 14 Use while loop allow a user to control when to stop It repeats as This program averages 3 test scores. many times as the user wishes. Write a while loop that will continue to prompt the user to enter 3 scores and then calculates the average. After displaying the average, the loop should ask the user if they want to average another set of scores. #include using namespace std; int main() { /* Create a program that produces the Sample Output shown at the bottom. You MUST: Output all of the lines show below in the Sample Output - spacing, spelling, punctuation, etc. must be exact matches - Declare variables and/or constants appropriately, name them according to standards (points will be deducted for poor names), and be sure to use appropriate data types NOTE: You should NOT expected to validate the score inputs to be sure they fall within a proper range - Do NOT worry about letters entered when numbers should be, etc. Your program should accept Y or y as proper entries for entering another group of scores - The Sample Output illustrates ONE run of the program, you need to repeat until the user says to stop. */ // return 0; } /* Sample Output Enter 3 scores and I will average them: 88 91 92 The average is 90.3333 Do you want to average another set? (Y/N) Y Enter 3 scores and I will average them: 65 70 75 The average is 70.0000. Do you want to average another set? (Y/N) y Enter 3 scores and I will average them: 92 93 96 The average is 93.6667. Do you want to average another set? (Y/N) n Press any key to continue

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_2

Step: 3

blur-text-image_3

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions