CSSE 220 – Object-Oriented Software Development

Homework 8

Objectives

Practice with decisions (if, switch) in Java. More practice implementing classes based on a given specification.

Tasks

  1. Complete the assigned reading for the next session, according to the course schedule.
  2. Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
  3. Programming:
    1. Finish CubicPlot
    2. In Eclipse, checkout the Decisions project.
      • Use the SVN Repositories view to check out this project.
    3. Complete any in-class exercises that you didn’t finish in class:
      • EmailValidator
      • Bid, including getValue(), isValid(), and 100% test coverage
    4. Big Java, Exercise P5.4 (P5.5 in ed3). We would like you to get more experience using ifs, if-elses, and switch statements, so instead of getNumericGrade, we would like you to write two methods:
      • getNumericGrade1(String). This should use either ifs or if-elses, whichever is more appropriate.
      • getNumericGrade2(String). Change your code to use at least one switch statement.

Remember, in all your code:

  • Write appropriate comments:
    • Javadoc comments for public fields and methods.
    • Explanations of anything else that is not obvious.
  • Give self-documenting variable and method names:
    • Use name completion in Eclipse, Ctrl-Space, to keep typing cost low and readability high.
  • Use Ctrl-Shift-F in Eclipse to format your code.
  • Take care of all auto-generated TODO's.
    • Then delete the TODO comment.
  • Correct ALL compiler warnings.
    • Quick Fix is your friend!

Here is the grading rubric for this assignment.

Turn-in Instructions

Turn in your programming work by committing it to your SVN repository.