Question: Design and implement an application file that does the following: Uses a 2 dimensional array to represent the marks that the students got on assignments

Design and implement an application file that does the following:

Uses a 2 dimensional array to represent the marks that the students got on assignments in this course (see sample data and output below)

Uses 1 dimensional arrays for the following:

Holds the names of the students in the course

Holds the average out of 10 for each student in the course

Holds the average out of 10 for each assignment

Creates 4 methods that perform the following tasks:

Reads data from the file students.txt (already created for you). See note below for code that you can use to connect to the file.

Calculates the assignment average for each student

Calculates the average for each assignment

The class size (number of students) and the number of assignments during the term will be the first line of data to read. (number of students first, then number of assignments). The students? names will come next, one per line. Finally the assignment marks, one student?s data per line, will be input.

Input Data (contained in students.txt):

Joe Smith 8 9 10 4

Tommy Jones 9 9 8 5

Sara Lee 0 10 10 9

Bob Fowler 10 9 9 0

Jane Doe 10 10 10 10

Sample Output:

Student Name Joe Smith Tommy Jones Sara Lee Bob Fowler Jane Doe

Student Name Joe Smith Tommy Jones Sara Lee Bob Fowler Jane Doe Average Marks Out of 10 A3 A1 8 9 0 10 10 7.40 A2 9 9 10 9 10 9.40 11 00 10 8 10 9 10 9.40 A4 4 5 9 0 10 5.60 Average Out of 10 7.75 7.75 7.25 7.00 10.00

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To design and implement this application heres a stepbystep guide using Python Step 1 Set Up the Program Import Necessary Libraries python import nump... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

6099cff2767df_30059.pdf

180 KBs PDF File

Word file Icon

6099cff2767df_30059.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!