ITEC 120 Back to Assignment index page
   
Assignment 5 - Grade averager
Submit your program to the RU10 in your folder on neelix.

Description:  You will write a class to model and ITEC120 student, and complete a class that models an ITEC120 class of students.

Download these 5 files: Student.java, itec120class.java, itec120student.java, pgm5.java, and pgm5in.txt.

You will submit 2 files: itec120class.java, itec120student.java.

pgm5.java - the driver - you do not need to change it.

Student.java - You WILL NOT change Student.java and you WILL NOT turn it in and you WILL NOT rename it. I will have that class available in the directory where I run your programs. It will be exactly the same as the file you have downloaded. Therefore, you must use it appropriately in your itec120student file. Also, do not change the driver, and no need to turn it in. I will also have a copy of it when I run your programs. Therefore, you must make the methods in itec120class work correctly with the associated method calls in the driver.

pgm5in.txt - a file of sample data which you may read using REDIRECTION.

Use this class diagram along with the documentation in the files to help you figure out the methods you need to write:


NOTE: Quiz grades are integers from 0 to 10, while midterm and final exam grades will be integers from 0 to 100. The semester average will be shown to 1 or 2 decimal places. To compute the average, average the quiz scores together first. The quiz average will be worth the quiz weight (set to 25%) of the semester average, the midterm will be worth the midterm weight (set to 35%) and the final will be worth the final weight (40%). These weights should be passed as parameters into calcSemesterave.

Here is the output for the sample input. Notice that Louis Armstrong received an A for an 89.85 average.

Student name: Thelonious Monk     Id: 345678999
Student name: Benny Goodman       Id: 555464646
Student name: Charlie Parker      Id: 334567843
Student name: Louis Armstrong     Id: 298786666
Student name: Duke Ellington      Id: 352435643

GRADE REPORT FOR: Thelonious Monk     Id: 345678999
Semester average: 73.4      C

GRADE REPORT FOR: Benny Goodman       Id: 555464646
Semester average: 63.45     D

GRADE REPORT FOR: Charlie Parker      Id: 334567843
Semester average: 79.45     C

GRADE REPORT FOR: Louis Armstrong     Id: 298786666
Semester average: 89.85     A

GRADE REPORT FOR: Duke Ellington      Id: 352435643
Semester average: 93.8      A


TURNING IN YOUR PROGRAM: You will turn in two files. You'll have itec120class.java, and itec120student.java. Submit these files to neelix in the appropriate folder. I will run your program with different input files. Do not change the format of the input file.