Please code using C++ and only use header . Any others will not be accepted. Please write using a globlal constant const int NO=10 and not #define. This is intended to be completed by using for loops as well as the global constant. Thank you!

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

Please code using C++ and only use header <iostream>. Any others will not be accepted. Please write using a globlal constant const int NO=10 and not #define. This is intended to be completed by using for loops as well as the global constant. Thank you!

Exams.cpp
test 1
test 2
test 3
test 4
.1(60)+. 25(70)+.3(80)+.35(90)
= 6+17.5+24+31.5 = 79.0
60
70
80
90
50
60
70
80
weighted average = 69
55
65
75
84
weighted average
73.65
averages:
test 1:
test 2:
test 3:
test 4:
In addition, you should add up all ten test one scores and divide by ten to compute the
unweighted average of all the test ones. Do the same for test two, test three, and test
four, thus printing four unweighted averages.
Transcribed Image Text:Exams.cpp test 1 test 2 test 3 test 4 .1(60)+. 25(70)+.3(80)+.35(90) = 6+17.5+24+31.5 = 79.0 60 70 80 90 50 60 70 80 weighted average = 69 55 65 75 84 weighted average 73.65 averages: test 1: test 2: test 3: test 4: In addition, you should add up all ten test one scores and divide by ten to compute the unweighted average of all the test ones. Do the same for test two, test three, and test four, thus printing four unweighted averages.
7: Exams.cpp) Suppose a teacher weights the four
exams he gives 10%, 25%, 30%, and 35%. Write a program
that reads ten sets of four grades, prints the weighted
average of each set, and prints the unweighted average of
each test. The number of students should be in a global
constant.
Transcribed Image Text:7: Exams.cpp) Suppose a teacher weights the four exams he gives 10%, 25%, 30%, and 35%. Write a program that reads ten sets of four grades, prints the weighted average of each set, and prints the unweighted average of each test. The number of students should be in a global constant.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr