Write a program called CourseMarks that reads data from a file called A1.txt.

computer science

Description

Write a program called CourseMarks that reads data from a file called A1.txt. The file contains a list of students and their name, student number, 11 lab marks, 4 assignment marks and 2 exam marks (midterm and final). Store each of the name, student number and marks in parallel arrays, where each array is related. Use 2D arrays for the lab, assignment and exam marks (i.e. a 2D array for each student’s 11 lab marks, another for 4 assignment marks and a third for the 2 exam marks


Individual components of the course are weighted as follows: 

- 10 labs: 10% of final mark (weighted evenly, best 10 of 11) 

- 4 labs: 15 % of final mark (weighted evenly) 

- Midterm exam: 25% of final mark - Final exam: 50% of final mark


Note that the Labs column contains the overall lab mark the student received out of 10 (the lowest mark is dropped). The assignments and exams are displayed with their respective weighting, and the total overall mark is displayed. 


The user will then be given an option to change a student’s mark. The system prompts the user for the lab/assignment/exam to change, and the student number and new mark. The system confirms the change and displays the summary again. 


Related Questions in computer science category