Earn Higher Grades With Instant Assignment Help.Ask Question!

Operating System
(5/5)

Write the bus simulation, as explained in the class and described in the notes. Feel free to look on the web for and then reuse any suitable code for the random number generator or for linked list algorithms.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

 Introduction to Operating Systems Homework Assignment #3 

This assignment is somewhat open-ended—start working on it as soon as you can!

As a minimum, a program must be written and a report prepared with the specific questions answered, but there is much room for using your creativity—please use it! The most important thing that you will have learned from this assignment is the discreet simulation technique, which you will apply (by re-using most of the code you develop to deal with this particular problem) later.

Write the bus simulation, as explained in the class and described in the notes. Feel free to look on the web for and then re-use any suitable code for the random number generator or for linked list algorithms. With that, 1)  don’t forget to include a reference to the source of any code you re-use and 3) remember to test all re-used code as you are the only one responsible for its performance..

The purpose of the simulation is to observe the behavior of the system, and answer the following questions:

  1. Does the distance between the adjacent buses remain the same? If not, what should be done to ensure that it be the same?
  2. What is the average size of a waiting queue at each stop (and what are its maximum and minimum)? (You may provide this information on an hourly [simulation time] )

Plot the positions of buses as a function of time (you will need to generate periodic snapshots of the system for that). Feel free to change parameters; then observe and document the results.

What you hand in must include

  1. The source code of your program (it must be well-commented) as well as the listing any of the input files it may use
  2. Your report, including plots, observations, and—especially—your recommendations for change in the scheduling policies. Needless, to say you will need runs that demonstrate that your recommendations solve the problems you observe. Remember that preparing a report is a very essential part of this assignment; this is not merely a programming exercise! The program must be working (or the assignment will get a grade of 0), but the report is the most important

 Feel free to change the simulation parameters. My initial suggestion is that there are

  • 15 bus stops
  • 5 buses
  • The time to drive between any two contiguous stops is 5 minutes
  • The passenger’s mean arrival rate at each stop is 5 persons/min
  • The boarding time is 2 seconds for each passenger
  • The total simulation time is 8

Make sure you start this project as early as possible, and then… experiment,

experiment, experiment! (100 points)

Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
908 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
557 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
788 Answers Hire Me