Set up a system for better understanding the Bus Routes

Assignment Help Programming Languages
Reference no: EM132241972

Project - Bus Routes

Introduction - You are working for a city, and want to set up a system for better understanding the needs of the busses running on certain routes. Using demographic data and technical specifications of busses, the city has created data structures for each city bus with the following properties that do not change:

bus.mass - The mass of the buss.

bus.passMass - The average mass of a passenger on a route.

bus.engine - The amount of force the bus's engine puts out on average.

In addition, you have added the following property to the structure for simulation purposes. This property can change:

bus.numPass - The number of passengers on the bus.

Procedure - The city wants you to do some calculations on the amount of work buses have to do on bus routes, given the number of passengers entering and leaving busses. You will write a function called busSim that will take the following inputs:

bus - A structure with the format defined above. You can assume that it will start with a certain number of passengers on board.

passOn - An array that contains only integers. This is the number of passengers that get on at each stop.

passOff - An array that contains only integers and is the same length as passOn. This is the number of passengers that get off at each stop.

distance - An array that contains real numbers that is the same length as passOn containing the distance the bus has to travel after each bus stop to get to the next stop.

It should return the following outputs:

bus - An updated version of the input structure with the final number of passengers.

passRecord - An array with the same length ad pass On with the number of passengers after each bus stop.

totalWork - A real number that is the total amount of work the bus's engine has had to put out on the entire trip. You can assume that passengers will board and leave the bus at the first stop before you have to make the rust work calculation. You should therefore make as many work calculations as there are elements in each of the input arrays.

Attachment:- Assignment Files.rar

Reference no: EM132241972

Questions Cloud

How can the project baseline and the earned value approach : How is a project baseline used to guide the execution of the project's work, to evaluate progress and performance, and to control the project?
What ethical or legal parameters should the researchers have : What ethical or legal parameters should the researchers have considered prior to distributing the trial drug at the health fair? If you were on translational
Why do we need to understand data visualisations : "Why do we need to understand data visualisations? There is more and more data around us, and data are increasingly used in decision-making, journalism.
Discuss importance and advantages of using given techniques : According to Kirk 2016, in order to dissect the importance of data representation, we are going to "look at it from both theoretical and pragmatic perspectives.
Set up a system for better understanding the Bus Routes : You are working for a city, and want to set up a system for better understanding the needs of the busses running on certain routes
What type of new countermeasures should have been implement : Start a discussion thread and discuss what type(s) of new countermeasures should have been implemented to prevent the cyber attack described.
Prepare a service blueprint for golfsmith : What generic approach to service system design does Golfsmith illustrate and what competitive advantages does this design offer?
Describe the characteristics of the perfect manager : Describe the characteristics of the perfect manager to see a company through all stages of organizational growth.
Describe at least two software tools that can be used : Describe at least two software tools that can be used to preserve digital evidence.

Reviews

len2241972

2/24/2019 11:53:00 PM

Instructions: I need for my code to be edited with some new criteria for the project. So I will send you the code that I have and then you can fix it according to the new criteria. The change is basically.... bus.engine is now the amount of force the bus applies per unit mass. Note that this now means that work depends on the number of passengers. You have to take the code that i have pasted, and make appropriate revisions to what the new assignment says and what the professor sent. He sent that now....the bus.engine is now the amount of force the bus applies per unit mass and to now note that the work depends on the number of passengers.

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd