1. Homepage
  2. Programming
  3. CS 520 Introduction to Operating Systems - Homework 3: Bus Simulation

CS 520 Introduction to Operating Systems - Homework 3: Bus Simulation

Engage in a Conversation
Stevens Institute of TechnologyCS520Introduction to Operating SystemsBus SimulationJava

CS 520: Introduction to Operating Systems Homework Assignment #3 CourseNana.COM

This assignment is somewhat open-endedstart working on it as soon as you can! CourseNana.COM

A reminder: You may work in groups; however, you may not show anyone your code or copy of any part of anyone else’s code or report. CourseNana.COM

Those who submit isomorphic programs or same reports, get 0 points each as a minimum. (For the rest of the penalties please check the Syllabus.) CourseNana.COM

I recommend that you write everything in smallno longer than one-page-longmethods and test each method separately. Start by testing your pseudo-random variable package and check the distributions to ensure that everything works. Include this test in a separate method. CourseNana.COM

Then prepare and test the event data structure. You must keep events in a heapthis is exactly why this structure was developed. The good news is that you may use the Java library. CourseNana.COM

After that, writing and debugging the rest of the program will be straight-forward. I recommend that you finish the program in the first week and spend the second week on experimenting and writing the report. CourseNana.COM

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 creativityplease 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. CourseNana.COM

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.. CourseNana.COM

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

1. Does the distance between the adjacent buses remain the same? If not, what should be done to ensure that it be the same? CourseNana.COM

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] base.) CourseNana.COM

CourseNana.COM

• • • • • • CourseNana.COM

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 CourseNana.COM

The total simulation time is 8 hours. CourseNana.COM

Make sure you start this project as early as possible so that you have enough time to run experiments and prepare a comprehensive report. (100 points) CourseNana.COM

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. CourseNana.COM

What you hand in must include CourseNana.COM

  1. Your working Java program (it must be well-commented) as well as all required CourseNana.COM

    input files in the txt format. CourseNana.COM

  2. A README txt file explaining what you are submitting. CourseNana.COM

  3. Your report, in the PDF format, including plots, observations, andespeciallyyour 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 an 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 quality of your report will determine your grade. CourseNana.COM

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

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Stevens Institute of Technology代写,CS520代写,Introduction to Operating Systems代写,Bus Simulation代写,Java代写,Stevens Institute of Technology代编,CS520代编,Introduction to Operating Systems代编,Bus Simulation代编,Java代编,Stevens Institute of Technology代考,CS520代考,Introduction to Operating Systems代考,Bus Simulation代考,Java代考,Stevens Institute of Technologyhelp,CS520help,Introduction to Operating Systemshelp,Bus Simulationhelp,Javahelp,Stevens Institute of Technology作业代写,CS520作业代写,Introduction to Operating Systems作业代写,Bus Simulation作业代写,Java作业代写,Stevens Institute of Technology编程代写,CS520编程代写,Introduction to Operating Systems编程代写,Bus Simulation编程代写,Java编程代写,Stevens Institute of Technologyprogramming help,CS520programming help,Introduction to Operating Systemsprogramming help,Bus Simulationprogramming help,Javaprogramming help,Stevens Institute of Technologyassignment help,CS520assignment help,Introduction to Operating Systemsassignment help,Bus Simulationassignment help,Javaassignment help,Stevens Institute of Technologysolution,CS520solution,Introduction to Operating Systemssolution,Bus Simulationsolution,Javasolution,