Write a program to calculate the electricity bill amount as per the following criteria.

Answers

Answer 1

Answer:

# Python Program to Calculate Electricity Bill units = int(input(" Please enter Number of Units you Consumed : ")) if(units < 50): amount = units * 2.60 surcharge = 25 elif(units <= 100): amount = 130 + ((units - 50) * 3.25) surcharge = 35 elif(units <= 200): amount = 130 + 162.50 + ((units - 100) * 5.26) surcharge = 45 else: amount = 130 + 162.50 + 526 + ((units - 200) * 8.45) surcharge = 75 total = amount + surcharge print("\nElectricity Bill = %.2f" %total)

Explanation:


Related Questions

What is acid mine drainage

Answers

Acid mine drainage is the formation and movement of highly acidic water rich in heavy metals. This acidic water forms through the chemical reaction of surface water (rainwater, snowmelt, pond water) and shallow subsurface water with rocks that contain sulfur-bearing minerals, resulting in sulfuric acid.
Other Questions
Please I only have an hour to submit this please please am begging, please PLEASEEEE1. Draw a picture that describes each of the two types of speciation.2. answer the photo below On a sunny day Jose's shadowis 2.9 m long, while the shadowof a tower is 11.3 m long. IfJose is 1.8 m tall, calculatethe height of the tower. How can the reliability of the investigation be improved? 2. Use any strategy to multiply.a. 4 x 79 If one team had 7 players, how many players did the other team have write a subtraction sentence where the difference is negative use a positive and negative integer Which of the following is not a cause of coastal erosion? (5 points) aLandslides bMudslides cWildfires dVegetation removal Find the base of 4+6 = 20 the length of a rectangle is 5 less than 2 times its width, if the perimeter is 86ft, what is the length and width of the rectangle. Write and solve the equation Will mark you brainliest please help!!! In a five-paragraph essay, assess the legality of the Confederacy's secession in light of the colonies' break from Britain and other facts presented in this assignment and in the rest of the course. You may bring in additional sources of information; just be sure to give proper credit to them. why did british men join ww1 pls Round 2.382 to the nearest hundred How do stereotypes and bias affect the way people act and view other people and themselves? How do stereotypes directly impact peoples impact. PLEASE HURRY NO LINKS 50 POINTStransfer of electrons create a positive ion and a negative ion the opposite charges attract one another causing a ___ to forma.) atomic bondsb.) chemical bondsc.)molecular bonds Describe how has Manchester United implemented each element of the marketing mix?Do you think Manchester United has been successful in integrating those components? Why or why not?How has the marketing mix helped Manchester United in branding their franchise? Describe what happens to temperature as you move further from the equator. Please help me to answer this question What is isomerism ???????? In what month is thanksgiving celebrated in canada Simplify to the form of a square root of b