0% found this document useful (0 votes)
3 views11 pages

Working Elevator Java Code

Uploaded by

penafloridajhon3
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
3 views11 pages

Working Elevator Java Code

Uploaded by

penafloridajhon3
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 11

ADVANCE PROGRAMMING LANGUAGE ANALYZING

PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

Elevator.JAVA

End of code

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorTest.JAVA

End of code

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorTest.JAVA

OUTPUT

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorIfThenElse.JAVA

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorIfThenElse.JAVA

End of code

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorIfThenElse.JAVA

OUTPUT

putting negative value or any


value that exceeds the array
becomes invalid!

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorLooping.JAVA

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorLooping.JAVA

End of code

Invalid input!

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorLooping.JAVA

Since passenger 2 inputted a


invalid prompt the user got
sent back to floor 1

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorLooping.JAVA

AY 2024-2025 | FIRST SEMESTER


ADVANCE PROGRAMMING LANGUAGE ANALYZING
PRACTICE TASK
OBJECTS
RIZAL
TECHNOLOGICAL
UNIVERSITY

ElevatorLooping.JAVA

AY 2024-2025 | FIRST SEMESTER

You might also like