Methods with Input and Output (train)
Due: Monday, February 11 at 10:00 pm.
|
eeee
eeee(o)
eeee
eeee
eeee(o)
eeee
|
EEEEEE
E s E(o)
E s E
E s E
E s E(o)
EEEEEE
|
######
# $ #(o)
# $ #
# $ #
# $ #(o)
######
|
======
= % =(o)
= % =
= % =
= % =(o)
======
|
cccc
cccc(o)
cccc
cccc
cccc(o)
cccc
|
Approaching the Problem
Start small basing your program on the rockets program in Chapter 1 of the textbook. Develop your solution incrementally. We suggest the following iterations although there are many ways to approach this problem.
For each iteration, modify your source code, save, compile, and execute.
Don't do too much in each iteration.
You absolutely must use methods for this assignment. The car function must take two String parameters specified by the user. You must call the car function three times with different variables as actual parameters. You must have a function to draw the engine and the caboose even if they just print boxes with wheels.
Delivery
When you are finished, submit your program as the
train lab.