Write a program that prompts the user to enter five test scores and then prints the average test score. Indicate the average test score by printing it to the terminal using the following format: Your average test score is: X (Assume that the test scores are decimal numbers.) Grading When you have completed your program, click the Submit button to record your score.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question
Programming Exercise 2-9
Instructions ctions
!!! 3
</>
до
Instructions
?
Write a program that prompts the user
to enter five test scores and then prints
the average test score. Indicate the
average test score by printing it to the
terminal using the following format:
Your average test score is: X
(Assume that the test scores are
decimal numbers.)
Grading
When you have completed your
program, click the Submit button to
record your score.
18
19
20
10
11
12
13
14
15
16
17
21
22
23
24 }
25
main.
9
1 #i
2 3 4 up co N 00
3 usi
5 int
6 {
do
dc
CO
ci
COU
cir
COU
cin
cout
cinx
cout
cin>
avg=
cout<
+
Transcribed Image Text:Programming Exercise 2-9 Instructions ctions !!! 3 </> до Instructions ? Write a program that prompts the user to enter five test scores and then prints the average test score. Indicate the average test score by printing it to the terminal using the following format: Your average test score is: X (Assume that the test scores are decimal numbers.) Grading When you have completed your program, click the Submit button to record your score. 18 19 20 10 11 12 13 14 15 16 17 21 22 23 24 } 25 main. 9 1 #i 2 3 4 up co N 00 3 usi 5 int 6 { do dc CO ci COU cir COU cin cout cinx cout cin> avg= cout< +
ps://ng.cengage.com/static/nb/ui/evo/index.html?deploymentId=57850526581687464982373819&eISBN=978
✓ Tools
ips
<«<
ips
Programming Exercise 2-91
E
CENGAGE MINDTAP
lil
&0
Tasks
Test Case Incomplete
Test case 1
Input
10
10
10
10
10
Output
Enter score of test 1:10
Enter score of test 2:10
Enter Score of test 3:10
Enter Score of test 4:10
Enter score of test 5:10
Your average test score is:10
Run checks
>
Submit 0%
O
main.cpp
1 #include <iostream>
2
3 using namespace std;
4
5 int main()
6 {
7
8
9
double N1, N2, N3, N4
double avgi
cout <<"Enter scor
cin>>N1;
cout << "Enter sco
cin>>N2;
13
cout << "Enter Sco:
14
cin>>N3;
15 cout << "Enter Sco:
16
cin>>N4;
17
cout << "Enter sco
18
cin>>N5;
19 avg=(N1+N2+N3+N4+N5
cout<<endl<<"Your a
20
21
22
23
24 }
25
10
11
[12
+
er
+
0
NO
99+
á
Transcribed Image Text:ps://ng.cengage.com/static/nb/ui/evo/index.html?deploymentId=57850526581687464982373819&eISBN=978 ✓ Tools ips <«< ips Programming Exercise 2-91 E CENGAGE MINDTAP lil &0 Tasks Test Case Incomplete Test case 1 Input 10 10 10 10 10 Output Enter score of test 1:10 Enter score of test 2:10 Enter Score of test 3:10 Enter Score of test 4:10 Enter score of test 5:10 Your average test score is:10 Run checks > Submit 0% O main.cpp 1 #include <iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 8 9 double N1, N2, N3, N4 double avgi cout <<"Enter scor cin>>N1; cout << "Enter sco cin>>N2; 13 cout << "Enter Sco: 14 cin>>N3; 15 cout << "Enter Sco: 16 cin>>N4; 17 cout << "Enter sco 18 cin>>N5; 19 avg=(N1+N2+N3+N4+N5 cout<<endl<<"Your a 20 21 22 23 24 } 25 10 11 [12 + er + 0 NO 99+ á
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,