Professor Merlin has asked you to help him. He has 100 total students in his four classes but he is not sure that all of them took his last exam. He wants to average the grades for his last exam in four sections of his medieval literature course and then determine how many students scored above the average and how many scored below. Without arrays you would have to enter all the test scores, find their average, and then enter them again to determine how many exceed the average

sounds correct to me.

read the scores into the array
find the average
scan the array, counting those above and below.

@ Steve. How?

a. Assume that a tutor created a 5-mark quiz for his students and he wants to know the mode of students' scores in the quiz. Write a C# program that reads from the user 6 lines of input. Each line includes 2 integers: a score and number of students who got this score. The program should compute and print the mode of students' scores (You can assume that there is always a unique answer)

To solve this problem without using arrays, you can take the following steps:

1. Start by collecting the grades of the students in each section of the medieval literature course. Let's assume there are 25 students in each section.

2. Calculate the average grade of each section by adding up all the grades in that section and dividing it by the number of students in that section.

For example, let's say the average grade in section 1 is 80, section 2 is 75, section 3 is 85, and section 4 is 70.

3. Calculate the overall average of all four sections by adding up the average grades of each section and dividing it by the total number of sections.

In this case, the overall average will be (80 + 75 + 85 + 70) / 4 = 77.5.

4. Now, you can determine the number of students who scored above and below the overall average.

To find the number of students who scored above the average, you need to count the total number of students who scored above 77.5 in each section and sum them up.

Similarly, to find the number of students who scored below the average, you need to count the total number of students who scored below 77.5 in each section and sum them up.

5. Once you have found the number of students above and below the average for each section, you can total them to get the overall count.

Keep in mind that since you do not have access to arrays, you would need to manually compare each grade to the average and increment the counts.

So, that's how you can calculate the average grade, determine the number of students above and below the average without using arrays.