Question
Dr. Hunter teaches three sections of her Intro to Computer Science class. She has 12 students in section 1, 8 students in section 2, and
Dr. Hunter teaches three sections of her Intro to Computer Science class. She has 12 students in section 1, 8 students in section 2, and 10 students in section 3. In the
Chap07 folder of the Student Sample Programs, you will find the following files:
• Section1.txt—This file contains the final exam scores for each student in section 1.
(There are 12 integer scores in the file.)
• Section2.txt—This file contains the final exam scores for each student in section 2.
(There are 8 integer scores in the file.)
• Section3.txt—This file contains the final exam scores for each student in section 3.
(There are 10 integer scores in the file.)
Create an application that reads these three files and stores their contents in a jagged array. The array’s first row should hold the exam scores for the students in section
1, the second row should hold the exam scores for the students in section 2, and the third row should hold the exam scores for the students in section 3.
The application should display each section’s exam scores in a separate List Box control and then use the jagged array to determine the following:
• The average exam score for each individual section
• The average exam score for all the students in the three sections
• The highest exam score among all three sections and the section number in which that score was found
• The lowest exam score among all three sections and the section number in which that score was found
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started