Problem Statement | |||||||||||||
You have acquired a list of the math and verbal test scores from all the children in the county. Write a class Average that contains a method belowAvg that takes two int[], math and verbal, representing the math and verbal scores of all of the children in the county, and returns the number of children who have a composite score which is below average in the county. The composite score is defined to be the sum of a child's math and verbal scores. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Notes | |||||||||||||
- | each element of math corresponds to the element with the same index in verbal. | ||||||||||||
- | the number of children is the length of math and verbal. | ||||||||||||
Constraints | |||||||||||||
- | math and verbal will contain the same number of elements. | ||||||||||||
- | math will contain between 1 and 50 elements, inclusive. | ||||||||||||
- | each value in math and in verbal is between 200 and 800, inclusive. | ||||||||||||
Examples | |||||||||||||
0) | |||||||||||||
| |||||||||||||
1) | |||||||||||||
| |||||||||||||
2) | |||||||||||||
| |||||||||||||
3) | |||||||||||||
|