Java代写:ISOM3320 Object-Oriented Programming

用Object-Oriented Programming的设计方式重构上次的作业。

Requirement

Based on your assignment 1, you are asked to rewrite the Java program with Object-oriented programming. The program should be consisted of 3 classes (Student, Course and a driver class that contains the main() method). Use a class diagram to show the relationship of your classes.

Input File

The input file format will be the same as the one in assignment 1. A general format of input text file depicts below:
Student ID, Student name, marks for assignment 1, percentage of assignment 1, marks for assignment 2, percentage of assignment 2,
Example,

[Student ID], [Student Name], Asg 1, 10, Asg 2, 10, Midterm, 40, Final, 40
01234567, Timture Choi, 99.5, 97, 100.0, 99.0
02345678, Elaine Tam, 89.5, 88.5, 99.0, 100

The first row denotes the names of all assessments of one course. Then, each student record presents in a line. All fields are separated by commas.

Output Screen

Here is a sample output from the input file shown above, similar format as in the assignment 1.
The Rank column is the ranking of each student according to the Overall score.
The output should be sorted by the rank in ascending order.

ID       Name         Asg 1 Asg 2 Midterm Final  Overall Rank
01234567 Timture Choi 99.50 97.00 100.00  99.00  99.30   1
02345678 Elaine Tam   89.50 88.50 99.00   100.00 97.40   2
             Average: 94.50 92.75 99.50   99.50  98.30

Your program should be able to process as many as possible students’ data, which are all contained in one input file as shown in the example.
In addition to output student records, your program should calculate the averages for each individual assessment.
Please be reminded that all numbers except the rank are displayed with 2 decimal places.

Assumptions

  1. Your program will process one file for each run.
  2. Each file contains only one course information.
  3. Rank the students’ result within a course.
  4. There is no comma in between surname and first name.
  5. The length of student id is fixed at 8 characters long.
  6. The length of student name is fixed at 20 characters long.

Submission

  1. Zip your programming files (java source code and class file), and name the zip file as your student’s ID, for example 20123456.zip.
  2. Make a screen dump for the program result.
  3. Draw the class diagram for your program.
  4. Upload your submission (1, 2 and 3) on Canvas.
  5. Late submission is not allowed.
  6. Plagiarism (Copying) is a serious concern. Students might search for information on the Internet and “Copy & Paste” it directly in their assignments. Hence, a strict rule is applied that MORE THAN SEVEN WORDS copied from a source is considered as a cheating. The minimum penalty is zero marks for the particular assignment.

Assessment Criteria

  1. Basic requirements from assignment 1 (30%)
  2. Ranking and sorting (20%)
  3. Effective use of Classes for different types of information/actions (20%)
  4. Programming style, program performance and use of comments (15%)
  5. Exceptions handling (15%)