Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Figure 1 shows the working model of a driverless bus in the city

Figure 1 shows the working model of a driverless bus in the city

Computer Science

Figure 1 shows the working model of a driverless bus in the city. There are 4 stops for the bus: Main Stop, Stop A, Stop B and Stop C. The main stop has six queues which are populated by people willing to take a ride in the bus to travel to the three stops -A, B and C. The main stop has a sensor which identifies the queue with maximum people and it then sends the signal to the bus. The priority goes to the queue which has maximum number of passengers. If queues 1 or 2 have maximum number of passengers then the bus will go to Stop A first, if queues 3 or 4 fills up first then the bus will go to the Stop B else bus will go to Stop C. Bus will always come back to the main stop after dropping the passengers to any of the Stop and then decides its next destination as per the priority of the queue which is again decided by the number of passengers. The starting point of the bus is the main stop and the ending point will be any of the three other stations. The criteria is that the bus should visit all the stops one by one depending upon the queues getting filled. Implement and simulate the above given model by object oriented programming concepts. Identify the classes and objects in the problem. For example, the passengers in the queues can be represented as objects and you can easily populate the queue this way. There is a flexibility given to you for implementing the queues as they can be implemented using arrays or classes. However, the overall simulation should be completed by using classes and objects. Note: You can do the coding using Vim on terminal or Jupyter notebook. TASK 2: Plotting the Simulation (20%) This task needs you to plot the above mentioned simulation with the help of matplotlib package. The plot should have the route starting from the main point (main station) to the end point (Stop which comes last as per the above simulation) You can have one or two different code files for two different tasks. The assignment is divided into two tasks: Task 1- Automation of the routes of driverless bus and Task 2- Plotting the routes taken by the bus in the same order. Note that task 1 needs to be done first followed by task 2. Main Bus Stop 1217 Driverless Bus Stop A Stop B Stop C Figure 1: Diagram of the Model

Option 1

Low Cost Option
Download this past answer in few clicks

16.89 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE