Question: 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 python, please! Hamzah wants to stop water wastage by creating
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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!