Question: Create a Student grading system. You should use a person base class (stores the name of the student). Derive a student class from the person

Create a Student grading system.

You should use a person base class (stores the name of the student).

Derive a student class from the person class. The student class stores the student ID.

The student class should also store the students 3 exams (Test 1, Test 2, and Test 3) and calculate a final grade (assume the 3 tests count equally).

Create an array of students for a class size of 15 students.

You can use the keyboard to read in all of the data for the 15 students (name, ID, and 3 grades), or read this data from a text file (PrintWriter).

If using a text file, you can use Comma Seperated values (see Case study in Chapter 10 page 748 for examples how to do this), below also shows how you can read CSV (see below).

String line = "4039,50,0.99,SODA"

String[] ary = line.split(",");

System.out.println(ary[0]); // Outputs 4039

System.out.println(ary[1]); // Outputs 50

System.out.println(ary[2]); // Outputs 0.99

System.out.println(ary[3]); // Outputs SODA

Once all the data is Imported, you can average all the exams and create a final letter grade for all students.

A - 90-100

B - 80-89

C - 70-79

D - 64-69

F < 64

The program should create an output showing all the data for each student as well as writing all the results to a file (using PrintWrite class). Hand in all data (program, output file, and a screenshot of the output of the program).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a conceptual overview and a stepbystep guide to tackle this problem Step 1 Define the Person Base Class The Person class will store the name of a student Its a simple class with a single memb... 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

Students Have Also Explored These Related Databases Questions!