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

  Create program using top-down modular approach

Use top-down modular approach and pseudocode to create suitable program to solve this problem. Validating your input data is also essential.

  Write a proram to take a sequence of numbers from the stack

Write a program to take a sequence of numbers from the stack. The most recent stack value will contain the number of digits to use.

  Write a program that uses a dynamic list of strings

Write a program that uses a dynamic list of strings to keep track of a list of chores that you have to accomplish today. The user of the program can request.

  Prompt user to enter two integer and read them from keyboard

Create a loop, and inside of it replace the larger integer with the difference between the larger integer and the smaller integer (if the integers are equal you may choose either one as the "larger")

  Why do we have both debug and release builds

When two or more functions have the same name, how does the compiler determine which one to use for a particular function call?

  Dorm and meal plan calculator

GUI Project in Visual Basic.NET - Dorm and Meal Plan Calculator - Create an application with a module and two forms. The module holds defined constants

  Discuss the feasibility and practicality

In Coffee's (2006) article, IT professionals discuss the role application developers take in software security. Pick one of these IT experts, summarize his or her perspective on building security into software, and then discuss the feasibility and..

  Write a c api program under mysql to solve database query

In earlier assignment, we created a database with the following three relation schemes, where the data type for the attributes s and p is Varchar(10) under the SQL-standard, the data type of the attribute c is Char(6) and the attribute sec is of type..

  Describe at least one feature of object-oriented programming

Describe at least one feature of object-oriented programming that Visual Logic lacks. Identify at least one advantage to using event-driven programming, as compared to using purely procedural programming.

  Write class called flight which represents airline flight

Draw and implement the class called Flight which represents an airline flight. It must contain instance data which represents airline name (String), flight number (int), and the flight's origin city (String).

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

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