Write program to assist in monitoring gasoline supply

Assignment Help Programming Languages
Reference no: EM1367767

Write a program to assist in monitoring the gasoline supply in a refinery storage tank. Your program should alert the supervisor when the supply of gasoline in the tank falls below 10% of the tank's 80,000-barrel storage capacity. The supervisor is accustomed to dealing with the contents of the tank in terms of a number of barrels. However, the pump used to fill tanker trucks gives its measurements in gallons, so your program will need to do the necessary conversions. The petroleum industry's barrel equals 42 US gallons. The program should first request that the operator enter the amount of gasoline currently in the tank. Then prompt the user to input the number of gallons pumped into a tanker and update the number of barrels still available. When the supply drops below the 10% limit, issue a warning and end the program.

Reference no: EM1367767

Questions Cloud

Ethical responsibility of primary nurse : What is a nurse's primary ethical responsibility? Has your response changed since you started this course? How has it changed and why?
Pricing and competitive strategies : Pick a good or service you are familiar with. Speculate how the price for that good or service may have been set and how well this price maximizes profit for the company and determine what shifts the company should make in its pricing strategy.
Determine the effect of expansionary monetary policy : Suppose the effect of monetary policy on the exchange rate value of the dollar. Estimate the effect of expansionary monetary policy on each of the following.
Design vb project to calculate checking account balance : Design vb 2008 project to calculate a checking account balance. form: include radio buttons to indicate the type of transaction: deposit, check, or service charge.
Write program to assist in monitoring gasoline supply : Write program to assist in monitoring gasoline supply in refinery storage tank. Your program must alert supervisor when supply of gasoline in the tank falls below 10% of the tank's
Write a program that reads numbers : Write a C++ program that reads N positive numbers from the keyboard, calculates and shows the smallest number of all numbers
Illustrate each company share of market at beginning : Illustrate what was each company's share of market at beginning and end of month. If current trend continues Illustrate what will market shares be.
Issue of differences in international interest rates : Explain why would we expect the difference in the one year interest rate on the dollar vs one year interest rate on, the Euro or any other freely convertible currency,
Compute the overall npv if tangible benefits are given : Tangible benefits of $190,000 per year. If the cost of capital is 12 percent, compute the overall NPV? Overall ROI? Break-even.

Reviews

Write a Review

Programming Languages Questions & Answers

  Why small to medium sized firm implement pki solution

Why would a small to medium sized firm implement a PKI solution? What are the characteristics required in using a password that will provide security protection for a company?

  Create and implement application which reads integer value

Create and implement application which reads the integer value representing a number grade. purpose of the program is to determine corresponding letter grade based on the following grade policy table

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

  Expression evaluate to true if string variable equals string

Write an expression that evaluates to true if and only if the string variable equals the string "end". Suppose that the value of s were "friend".

  Design program to ask user to enter amount of purchase

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

  Explain multiprogrammed system available in user mode

CPU voltage and frequency or put it to sleep altogether. In a multiprogrammed system should this functionality be available in user mode or only accessible via system call. why or why not?

  How to assign new value to element of array indexed by j

Write single statement which assigns a new value to element of array indexed by j . This new value must be equal to twice the value stored in next element of the array (i.e. element after the element indexed by j.

  Issues into account for collecting user data via forms

In addition to making our forms easy to use we need to consider user privacy and the use of data. What are some of the issues which you believe you require to take into account for collecting user data via forms?

  Advantages of contemporary languages allow kinds of comments

Many contemporary languages allow two kinds of comments, one in which delimiters are used on both ends (for multiple line comments), and one in which a delimiter marks only the beginning of the comment.

  Write program where dealer-s five-card hand is dealt

Write a program where the dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand.

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

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