Project Planning Guide Java

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Gas Mileage

Project Name _______________________


Joshua Allred
Student Name _______________________

PROJECT PLANNING GUIDE


Step 1: REQUIREMENTS

List & understand the requirements of the project:

1) Make a class called Automobile


6)
2) Create Methods: fillUp, takeTrip, and reportFuel

(fillUp method fills tank with given amount of gallons, takeTrip should calculate amount
of gas to travel a given number of miles, reportFuel should Report remaining fuel)

3) Create Tester class and test the code with given statements in project
Step 2: ARCHITECTURAL DESIGN
What are the input(s)?

24 mpg, myBmw, 20 gallons

mpg, #Miles requires ?# Gallons

What calculations or
procedures need to be done?

What are the outputs or


results?

Result: Prints remaining gas in tank

Step 3: CODE DESIGN


VARIABLES
CONSTANTS
myBmw, fuel_left

METHODS

EQUATIONS

fillUp, takeTrip,
reportFuel

Conversion of
miles traveled to
gallons uesed

PACKAGES

Logic Flow

Step 4: CODE AND UNIT TEST (Its a Do While Loop!)

You might also like