Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python, please! Hamzah wants to stop water wastage by creating a new billing system that will make people pay more the more water they

image text in transcribed
Use python, please!
Hamzah wants to stop water wastage by creating a new billing system that will make people pay more the more water they use. Write a function called Water Bill20210) that takes as input the daily usage in liters of water and number of people living in the house then approximates the amount payable following those rules. Depending on the number of the household members the first 3 litters for each member is free (3 number of members). Since the daily water intake for humans is -3L. For the rest each extra 10 litters will cost: 12$ + 3% of the total cost of all the litters which had been used before. (The first 10 litters used after the free ones will cost only 12$. because the total cost before was 0). The last few litters (less than 10) each will cost 2$ . For example if you entre 100 litters and 5 members, you should get: Enter litters used daily: 100 Enter number of household members: 5 amount of free water = 15 116.70803255504644

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Did the team members feel that their work mattered

Answered: 1 week ago

Question

3. What may be the goal of the team?

Answered: 1 week ago