Calculate and display the water bill

Assignment Help Basic Computer Science
Reference no: EM131080776

Problem:

A town uses a two-tier system to calculate bill for water usage.  For the first 8000 gallons, it is $0.004 per gallon.  After the first 8000 gallons, the rate will be $0.007 per gallon. Suppose a customer uses 8500 gallons of water.  He will pay $0.004 per gallon for the first 8000 gallons, and $0.007 per gallon for the last 500 gallons. Write a Python program to determine how much a customer needs to pay.  Ask the user how much water he has used.  Calculate and display the water bill. The following are two examples.

Enter gallons of water used: 2100

Please pay this amount: $8.4

Enter gallons of water used: 8500

Please pay this amount: $35.5

Reference no: EM131080776

Questions Cloud

Single backup file : Why might an administrator need to only restore a single or small subset of files that are contained in a single backup file containing many files and folders?
Assignment-apple versus samsun : Apple iPads continue to be successful. The Samsung Galaxy Tab is one (1) of iPad's competitors. Use the Internet and Strayer Library to research the advantages and disadvantages of these devices and to determine if they are comparable.
Describe ftp protocol : 1. Describe FTP protocol? 2. What are the layer ports numbers used by FTP? 3. Describe SCP?
Determine the deflection of the beam : Determine the deflection of the beam when it is subjected to a load per unit length, w, over the section x = x1 to x = x2. What is the maximum deflection if x1 = 0 and x2 = l?
Calculate and display the water bill : Write a Python program to determine how much a customer needs to pay.  Ask the user how much water he has used.  Calculate and display the water bill. The following are two examples.
For what does the case acronym stand : For what does the CASE acronym stand? In general, what is the purpose of CASE tools? What types of individuals are most likely to use CASE tools?
Categories of personal productivity software packages : List at least five categories of personal productivity software packages. Then concentrate on one of these categories, and describe a representative product in that category with which you are somewhat familiar.
Capability and features of three well-known nms : This week, you will prepare a research report summarizing the capability and features of three well-known NMSs.
Compute the laplace transforms of given functions : Determine an annihilator for x2 e3x + 5 cos 2x. Convert the following system to a first-order system: d2x/dt2 -3dy/dt+x = sint,  d2y/dt2 -tdx/dt-e'y=t2

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe the complexities of auditing a cloud computing

1. explain the role auditing plays in the context of achieving trustworthy systems. 2. explain the complexities of

  Describe modifications be made to poorly designed website

Discover the site which you feel is poorly designed and describe what modifications must be made using text as a guide.

  Write a program that prompts the user for an integer value

write a program that prompts the user for an integer value for a length of a youtube clip in seconds then display the number of hours , minutes and seconds within the given length.

  How can you address this problem

That is, you have mutually conflicting requirements. How can you address this problem?

  An example of a picture effect for images in powerpoint 2007

An example of a picture effect for images in PowerPoint 2007 would be

  Qualitative method will be used to analyze

Qualitative method will be used to analyze and explain the theory and quantitative method will be used to provide and support the theory.

  Point-of-sale cash register

A retail department store is approximately square,35 meters (100 feet) on each side. Each wall has two entrances equally spaced apart. Located at each entrance is a point-of-sale cash register.

  Calculate the blocking factor bfr

Calculate the average time it takes to find a record by doing a linear search on the file if (i) the file blocks are stored contiguously, and double buffering is used; (ii) the file blocks are not stored contiguously.

  Evaluate how supply chain management systems

Analyze how people, information, and information technology help the company remain competitive in their industry. Analyze Porter's Five Forces Model in relation to competition within the industry of that corporation. Evaluate how supply chain manage..

  Describe business reasons for developing an enterprise

In your own words, Describe business reasons for developing an enterprise security program, what the benefits are for the organization and what the benefits are to the security team itself, including your CISO. What might also be some of the risks of..

  Choose one area of rapid technological change in it

4. Choose one area of rapid technological change in IT or Computer Science, research and report on recent developments and the outlook for the future in the area that you have chosen. You will need to provide both in text citations and bibliography e..

  What the different between j2me vs android

In your opinion identify and describe any five aspects which ensure the existence of M Commerce in long run

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