Question: OBJECTS AND CLASSES - JAVA JAVA - Objects and Classes, DO NOT use complex coding, just OBJECTS AND CLASSES 1. Write an elevator test program.
OBJECTS AND CLASSES - JAVA
JAVA - Objects and Classes, DO NOT use complex coding, just OBJECTS AND CLASSES
1. Write an elevator test program. Have the program execute the following steps using the methods in the class:
> Start on the first floor.
> Go to the second floor (dont forget to update the Boolean variable GoingUp).
> Go to the third floor
> Attempt to go to the fourth floor (Remember: there are only three floors)
> Go back to the second floor
> Go back to the first floor
> Be sure to call displayCurrentFloor() to notify the user which floor the elevator is on at each step
just OBJECTS AND CLASSES
just OBJECTS AND CLASSES
just OBJECTS AND CLASSES
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
