CSIS 202 - Intro. to Computer Science II
Assignments\Programs
- Due 1/23, Assignment #1 - Develop the class Automobile as defined below and then develop your own test harness to fully test this class.
- class Automobile
- Constructor that accepts mpg (double), tank capacity (integer), current gallons in tank (double), odometer (double)
- method drive that accepts miles to be driven (double) and then moves the car as far as it can given the current fuel level.
- method reFill that fills the gas tank
- method checkGasGauge which returns a double that represents the percentage of fuel left in the tank.
- method getOdometer that returns the current odometer reading.
- Due 1/23, Assignment #2 - Develop a class of your choosing that represents some physical object in your world. Write a test harness for this class as well.
- Due 1/30, Assignment #3 - Develop the Calculaor class that works with the this test harness.
- Due 2/8, Assignment #4 - Develop the GameSuite framework that will allow us to plug in various games throughout the semester. Here are two of the classes we designed during lab that will be part of your GameSuite (Die and Player). I have also provided a high-lvel design for GameSuite here.
- Due 2/15, Assignment #5 - Develop the game "Casting of Lots" and place it in your GameSuite framework.