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
-
Complete the assigned reading for the next session: Big Java Chapter 6.
- As you read, see if you can answer the self-check questions.
- Bring your questions to class!
-
Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
-
Programming:
- Boutell's section: finish CubicPlot
Mutchler's section: finish Faces
-
In Eclipse, checkout the Decisions project.
- Use the
SVN Repositories
view to check out this project.
-
Complete any in-class exercises that you didn’t finish in class:
-
EmailValidator
-
Bid
, including getValue()
, isValid()
, and 100% test coverage
- Big Java, Exercise P5.5. 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 if
s or if-else
s, whichever is more appropriate.
getNumericGrade2(String)
. Change your code to use at least one switch
statement.
Turn-in Instructions
Turn in your programming work by committing it to your SVN repository.