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

  Computer science os

Some operating systems use base and bound registers to protect memory. The bounds registers updated (or changed)

  Describe the definition of social change what does social

what is the definition of social change? what does social change mean to you in your daily life? do you think about

  News website for australian broadcasting corporation

Provide an expert review of the news website for Australian Broadcasting Corporation

  Problem regarding the database controls

Based on your research conducted earlier in this unit, identify the types of controls that are available to mitigate some of the vulnerabilities, threats, and risks you identified in the Unit 5 discussion.

  Find the length represented by x

Geometry A cone is inscribed in a sphere with a radius of 15 centimeters. If the volume of the cone is 1152Ωπ cubic centimeters, find the length represented by x.

  Draw a circle with that center and radius in a component

Write a program that prompts the user to enter the x- and y-positions of the center and a radius, using JOptionPane dialogs.When the user clicks a "Draw" button, draw a circle with that center and radius in a component.

  Create a sequentially numbered array

Create a sequentially numbered array of 50 integers. Then use the Random_range procedure to shuffle the array in a random order.(Each number will only appear once in the array.) Display the shuffled array.

  Tell the new value of each of the summary statistics

Suppose business has been good and the company gives every employee a $50 raise. Tell the new value of each of the summary statistics.

  Design an enhanced entity relationship

Develop, document and design an Enhanced Entity Relationship (EER) model for this situation.  You are working for country club with thousands of members. You have been tasked with designing a database to keep track of the members and their guests.

  Design and implement a timedate adt that can be used

Design and implement a TimeDate ADT that can be used to represent both a date and time as a single entity.

  A security strategy involves risk assessment.

A key part of designing a security strategy involves risk assessment. Our tolerance to risk determines what provisions need to be in place to keep our risk at a manageable level. What is the process to determine an acceptable level of risk and how do..

  Display the players name and team name

The Midville Park District maintains a file named Soccer.rec containing information's about players on its soccer teams. The record contains a player's first name, last name and team number. The teams are:

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