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!
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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: Understanding Weighted Averages**
This example illustrates how to calculate weighted averages using a series of test scores.
### Test Scores and Weighted Average Calculation
**Scores:**
- **Test 1:** 60, 50, ..., 55
- **Test 2:** 70, 60, ..., 65
- **Test 3:** 80, 70, ..., 75
- **Test 4:** 90, 80, ..., 84
#### Calculation for Weighted Average:
- The formula for calculating the weighted average is:
\[
0.1(60) + 0.25(70) + 0.3(80) + 0.35(90)
\]
- Breakdown of calculation:
\[
= 6 + 17.5 + 24 + 31.5 = 79.0
\]
- **Weighted Averages:**
- First four scores yield a weighted average of **79.0**.
- Further, a weighted average of **69** is calculated using other series of scores.
- Another set yields a weighted average of **73.65**.
### Averages Calculation for Each Test:
1. **Test 1:**
2. **Test 2:**
3. **Test 3:**
4. **Test 4:**
### Additional Instructions
You should sum up all scores for test one and divide by ten to compute its unweighted average. Repeat this procedure for test two, test three, and test four. This process results in four unweighted averages.
This example aids in understanding how weights impact overall performance in a series of assessments, crucial for educational evaluations.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3f71a40a-4cff-4959-8946-a68dc332c184%2F31843cdd-22cc-4d27-aafa-392dbd3b545a%2Fxewj9dy_processed.jpeg&w=3840&q=75)


Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images









