Jagged Array of Exam Scores
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 ListBox 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
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Pearson eText for Starting out with Visual C# -- Instant Access (Pearson+)
Additional Engineering Textbook Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Management Information Systems: Managing The Digital Firm (16th Edition)
SURVEY OF OPERATING SYSTEMS
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- Using R languagearrow_forward(Using R language)arrow_forwardAfter our initial deployment for our ML home based security system, the first steps we took to contribute further to the project, we conducted load testing, tested and optimize for low latency, and automated user onboarding. What should be next?arrow_forward
- Why investing in skills and technology is a critical factor in the financial management aspect of system projects.arrow_forwardwhy investing in skills and technology is a critical factor in the financial management aspect of systems projects.arrow_forwardWhy are requirements changing a significant source of risks in system projects?arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr