Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

import javaioBufferedReader import javaioFileReader public class StudentMarks Declare the arrays static int marksArray static String namesArray static double averageForEachStudent static double averag... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Document Format ( 2 attachments)

PDF file Icon
6099cff2767df_30059.pdf

180 KBs PDF File

Word file Icon
6099cff2767df_30059.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Statistics

Authors: Michael Sullivan III

4th Edition

978-032184460, 032183870X, 321844602, 9780321838704, 978-0321844606

More Books

Students also viewed these Programming questions

Question

Explain how CRM can be used as a targeting tool

Answered: 1 week ago

Question

List noteworthy changes that were implemented in DSM-5.

Answered: 1 week ago