Question: Read student information from a file, store the data, compute final grades, and then print a summary report to an output file. 1. Design a

Read student information from a file, store the data, compute final grades, and then print a summary report to an output file.

1. Design a set of classes that store student-grade information. There should be one base class to store common data and three derived classes that divide the set of students into three categories: English students, Science students, and Math students. All data stored in these classes should be private or protected. Any access to class data from outside should be done through public member functions. The base class should allocate storage for the following data (and only this data):

students first name (assume 30 characters or less)

students last name (assume 25 characters or less)

Which course the student is in (English, Science, or Math)

2. Each class should have a function that will compute and return the students final average based on the stored grades. All grades are based on a 100-point scale.

Here are the grades that need storing for each subject along with the breakdown for computing the final grade:

English

Term Paper = 30%

Mid-term test= 30%

Final Examination = 40%

Science

Attendance = 10%

Project = 30%

Mid-term test= 30%

Final Examination = 30%

Math

Quiz Average = 15%

There are a total of 5 quizzes averaged together (the result can be a decimal number)

Test 1 = 30 %

Test 2 = 20 %

Final Examination = 35%

The first line of the input file will contain the number of students listed in the file. This will test how big a list you need. After the first lines, every set of two lines constitutes a student entry. The first line of a student entry is the name in the format lastName, firstName. Note that a name could include spaces; the comma will delineate the last name from the first name. The second line will contain the subject (English, Science, or Math) followed by a list of grades (all integers) all separated by spaces. The order of the grades for each class type is as follows:

English Term paper, Mid-term test, Final Examination

Science Attendance, project, Mid-term test, Final Examination

Math Quiz 1, Quiz 2, Quiz 3, Quiz 4, Quiz 5, Test 1, Test 2, FinalExamination

Output File

The output file that you print should list each students name (first name Lastname no extra punctuation between), FinalExam grade, final average (printed to 2 decimal places), and letter grade based on a 10-point scale (i.e., 90-100 A, 80-89 B, etc.). The output should be separated by subject, with an appropriate heading before each section, and each students information listed on a separate line in an organized fashion. Data must line up appropriately in columns when multiple lines are printed in the file. At the bottom of the output file, print a grade distribution (i.e., how many As, Bs, Cs, etc.) of all students.

I want to know the code in JAVA

how to code this in Java language?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!