Homework 1 Grading Guide


Deduct 25 points for a failure of the .jar file to run and send email to the student telling them they have 3 days to fix it.
  1. 5 points Java's finalize method

  2. (5 points) Virtual machines

  3. (5 points): constant declaration

  4. (5 points) parameter passing in swap

  5. (5 points) Min.java

  6. (30 points) Write a Java class named Salary that determines whether or not each person in a group of persons is above or below the average salary for the group.
    1. Output
      1. (10 points) Correctly computes the average salary
      2. (10 points) Correctly shows whether a person's salary is above (true) or below (false) the average salary
    2. Formatting
      1. (2 points) Correctly formats the average salary (left justified in a 10 character wide field with 2 decimal digits and a thousands separator)
      2. Correctly formats each line of output
        1. (2 points) name left justified in a 15 character wide field
        2. (2 points) salary right justified in a 10 character wide field with 2 decimal digits and a thousands separator
        3. (2 point) prints true/false
    3. Error Checking
      1. (1 point) Prints an error message if there is not an even number of arguments
      2. (1 point) Prints an error message if there are no arguments

  7. (40 points) SalaryList.java.
    1. (25 points) The output is correct and in ascending order by salary.
    2. (12 points) They used some type of linked structure. You needn't try to follow their logic. Just make sure they used a linked structure and not an array.
    3. (3 points) They used/called a createList method to create their linked list.

  8. (5 points) The ChineseZodiac.