Determine the acceptable error for a given estimated time

Assignment Help Programming Languages
Reference no: EM13951108

An airline vice president in charge of operations needs to determine whether the current estimates of flight times are accurate. because there is a larger possiblity of variations due to wether and air traffic in the longer flights, he allows a larger error in the time estimates for them. He compares an actual flight time with the estimated flight time and considers the estimate to be too large, acceptable, or too small, depending on the following table of acceptable error margins:

Estimated flight time in minutes Acceptable error margin in minutes

0-29 1
30-59 2
60-89 3
90-119 4
120-179 6
180-239 8
240-359 13
360 or more 17

For example, if an estimated flight time is 106 mins, the acceptable error margin is 4 mins. Thus, the estimated flight time is too large if the actual flight time is less than 102 mins, or the estimated flight time is too large if the actual flight time is greater than 110 mins; otherwise, the estimate is acceptable.

Write a function that uses a switch statement to determine the acceptable error for a given estimated flight time, according to this table. Use the function in a program that reads an estimated flight time and an actual flight time and then determines whether the estimated time is too large, acceptable, or too small. If the estimated flight time is too large or too small, the program should also print the amount of the overestimate or underestimate.

Reference no: EM13951108

Questions Cloud

Estimate to perform a particular construction activity : It is seldom that the original bid estimate to perform a particular construction activity is the same as the actual cost to do the work. The estimate will always be higher or lower because of any number of unforeseeable factors that will cause the..
Perform a one-tailed test : Assume that the two populations of appreciation rates are normally distributed and that the population variances are equal. Can we conclude, at the level of significance, that houses in Sun Beach have higher appreciation over the past three years..
Section on honeywell history and the turnaround : After reviewing the background section on Honeywell's history and the turnaround led by Dave Cote from 2002-2008, what do you think went wrong with the way the management team handled the 2001 recession?
Suggestions for improvement from a human resources : Suppose that you are helping to create a website that provides a resume improvement service. For a fee, a customer submits his or her resume to the site and receives suggestions for improvement from a human resources professional. What requirement..
Determine the acceptable error for a given estimated time : Write a function that uses a switch statement to determine the acceptable error for a given estimated flight time, according to this table.
Identify how ip telephones access their media controllers : Identify how IP telephones access their media controllers. IP telephones access their media controllers through a hub. IP telephones access their media controllers through a bridge.
Determine the number of the nearest cross street : Write a function that uses a switch statement to determine the number of the nearest cross street for a given address and avenue number according to the preceeding alogorithm. Then write a program to test your function.
What observation can you state about electrical conductivity : What observations can you state about electrical conductivity from observing these pictures? Based on the pictures, list the solutions that based on conductivity, ordered from best to worst.
How is the development of agriculture positive : How is the development of agriculture positive and how is it negative? How is herding better and worse than agriculture as an alternative? How do historians explain the entrance of agriculture in human daily life

Reviews

Write a Review

Programming Languages Questions & Answers

  Probability line is executed in nth iteration of for loop

What is the probability that line is executed during the nth iteration of the for loop? What is the exact expected number of executions of line?

  Write client-side javascript function to convert ampersands

Your job is to write a client-side JavaScript function that converts all ampersands in a form field to the text string " and " when the form loses focus on the textbox in question.

  Program to overload the addition assignment operator

Overload the addition assignment operator (+=), the subtraction assignment operator (-=), and the multiplication assignment operator (*=).

  Create a new project in your ide named exceptionhandler

Create a new project in your IDE named "ExceptionHandler." Write code to accept numbers as described above from the user. Your code should ensure that only numbers are accepted.

  Programming language for a new point-of-sale system

You are the lead programmer for a new software project and have been assigned to choose the programming language for a new point-of-sale system

  Write html page to enter city current temperature

Write HTML page that asks user to enter city current temperature and changes background color depending on that temperature.

  Projects for the falling letters game

Design and implement two projects for the Falling Letters game using C# and Windows Presentation Foundation (WPF) template in Visual Studio 2012 or newer.

  Read each line and create one complex object

Write all complex objects to file complexObj.txt and compute sum of all objects and append the object to the end of complexObj.txt

  Create xml document to mark nutrition facts for cookies

Create an XML document that marks up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving.

  Php script to obtain url and its description from user

Write a PHP script to obtain URL and its description from user and stores information into database by using MySQL.

  Write an assembly code segment that calls the subroutine

Write an assembly code segment that calls the subroutine New Functionif bits 5 and 6 of PORTD equal 1 and write the same code segment in part (a) using structured assembly constructs.

  Write application that inputs five number

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive.

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