Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// This program averages 3 test scores. It repeats as // many times as the user wishes. #include using namespace std; int main() { int

// This program averages 3 test scores. It repeats as

// many times as the user wishes.

#include

using namespace std;

int main()

{

int score1, score2, score3, score4; // Three scores

double average; // Average score

char again; // To hold Y or N input

do

{

// Get three scores.

cout

cin >> score1 >> score2 >> score3 >> score4;

// Calculate and display the average.

average = (score1 + score2 + score3 + score4) / 3.0;

cout

// Does the user want to average another set?

cout

cin >> again;

} while (again == 'Y' || again == 'y');

return 0;

system("pause");

}

image text in transcribed

using the above template.

Project14 . Create a propect cald Projett4 (uning p67) 2. Add another score scoret 3. Do the aerage for the 4 seres 4. Change he condfon on while statament tor h user wrote the wond "nf, the loin will end 5. Charge the do-wtile loop to vitile ls 6. Read 4 stcortes or 4 sudens 7. Calculate and print he average r fre sbudent for la

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions