I need help in making the building class and floor class. I posted the requirement for both classes down below. This is an elevator simulator that uses polymorphism and object-oriented programming to simulate the movement of elevators in a building with multiple types of passengers and elevators. The elevator simulator that uses polymorphism and object-oriented programming to simulate the movement of elevators in a building with multiple types of passengers and elevators. The system has 8 elevators, each of which can be one of 4 types of elevators, with a certain percentage of requests for each type. Similarly, each passenger can be one of 4 types, with a different percentage of requests for each type. Classes requirements: Building Class{ Should hold variables like total floors and total elevators Also creates ArrayLists of elevators and floors } Floor Class{ Houses the ArrayList - floorPass Which add passenger in different floors }
I need help in making the building class and floor class. I posted the requirement for both classes down below. This is an elevator simulator that uses polymorphism and object-oriented
The elevator simulator that uses polymorphism and object-oriented programming to
simulate the movement of elevators in a building with multiple types of passengers and elevators.
The system has 8 elevators, each of which can be one of 4 types of elevators, with a certain
percentage of requests for each type. Similarly, each passenger can be one of 4 types, with a
different percentage of requests for each type.
Classes requirements:
Building Class{
Should hold variables like total floors and total elevators
Also creates ArrayLists of elevators and floors
}
Floor Class{
Houses the ArrayList - floorPass
Which add passenger in different floors
}
Trending now
This is a popular solution!
Step by step
Solved in 3 steps