How much of each grade of gas to supply to a gas station

Assignment Help Basic Computer Science
Reference no: EM131395399

a. Modify the class written for Exercise 9a to include the grade of gas. Assume there are three grades of gas: 87 octane, 93 octane, and 97 octane.

b. Include the class written for Exercise 10a in a program that simulates the arrival of 10 customers (using a while loop). The arrival time, number of gallons of gas each customer requests, and octane rating of the gas should be displayed. After the last customer, your program should display the total number of gallons requested for each grade of gas.

c. What does your simulation assume about the comparative desirability of each grade of gas? Is this assumption realistic?

d. Based on your answer to Exercise 10c, what are the implications of using the simulation to determine how much of each grade of gas to supply to a gas station?

Reference no: EM131395399

Questions Cloud

Understanding of meaning of the word scapegoat : What is your current understanding of meaning of the word "scapegoat"? Have you always understood the meaning of the word? Describe any early impressions you had at a much younger age as to what a "scapegoat" was. Give an example of a scapegoat
Construct argument patterns - teenage drunk driving : If a statement is redundant or plays no role in the argument, do not include it in the pattern.- The argument has been made that to cut down on teenage drunk driving we should increase the federal excise tax on beer.
Downward-sloping demand curve-upward-sloping supply curve : The market for pizza is characterized by a downward-sloping demand curve and an upward-sloping supply curve.
Construct argument patterns - flesh food is not a necessity : If a statement is redundant or plays no role in the argument, do not include it in the pattern.- Flesh food is not a necessity in the human diet, as nutritionally adequate alternatives are readily available.
How much of each grade of gas to supply to a gas station : Modify the class written for Exercise 9a to include the grade of gas. Assume there are three grades of gas: 87 octane, 93 octane, and 97 octane.
Ability to generalize a causal relationship : Which combination of validity types is most related to our ability to generalize a causal relationship? Explain.
Real costs of college education : Assuming that the real costs of college education are lower now than at the turn of the century and that these costs are lower for persons of higher ability, construct an explanation for why banks might have raised their hiring standards"
What can we expect of catherines school experiences : What can we expect of Catherines's school experiences? What are two of the most serious health risks associated with her obesity? Discuss two strategies for dealing with Catherine's obesity
Construct argument patterns - cigarette consumption : If a statement is redundant or plays no role in the argument, do not include it in the pattern.- Cigarette consumption could be easily reduced by simply outlawing tailor-made cigarettes.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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