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

  Explore a little untyped functional programming using elisp

The goal of this homework is to explore a little untyped functional programming using elisp, the version of the LISP programming language supported by the emacs text editor

  The formula for the area of a circle is pir2 where r is the

the formula for the area of a circle is pir2 where r is the radius of the circle. write a program to compute the area

  Create a program for a ledger''s furniture store

Create a program for a Ledger's Furniture Store. Create a pseudocode program using Notepad++ to solve this problem. Third, create the program with RAPTOR.

  Program to processes the test data

Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, and followed by the test grade.

  Create program that asks user to enter series of numbers

Create a program which asks the user to enter a series of 20 numbers. The program must determine whether number is valid by comparing it to following list of valid charge account numbers:

  About linux programming language

creates a new process by duplicating the calling process. The new process, referred to as the child, is an exact duplicate of the calling process, referred to as theparent

  Shell script that will count the number of files in account

Modify the script to get it to back up to "X" number of days and list the files that were modified for each day.

  Design an appropriate set of classes to solve the problem

The purpose of this project is for you to demonstrate your understanding of object oriented software development in practice.

  Write a program that will take a sentence

Write a program that will take a sentence (a single String) such as "the lazy dog tripped over the bar stool", picks out the individual words (substrings).

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Program accept word from user and pass it to function

Your program should accept the word from user and pass it to function. Function requires to check if word is "freezing". If it is, program must alert user.

  Write a program to play the game of nim with the computer

Write a program to play the game of Nim with the computer. To play Nim, start with 15 tokens

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