Question: Using c programming : In Tirana, water bills for home use is calculated as follows: Each tone of clean water is 45 leke. And there
Using c programming : In Tirana, water bills for home use is calculated as follows: Each tone of clean water is 45 leke. And there is also payment for wastewater: each tone is 11 leke. There is 100 leke service price. The total is added 20% tax. Then, there is also a fixed amount paid for the municipality which is defined every month. Write a program that reads information for n clients and prints out the total amount to be paid. Input specification: In the first line of the input.txt you will be given two integers: the number of clients (n) and the monthly fixed amount (m) to be paid for the municipality. Then, each of the following n lines contains an integer, the amount of water used by each client where client water usages are integer between 0 and 200, 0 <= n <= 30,000 and 0 <= m <= 2,000. Write a function that calculates for calculating the bill of a client. Note: round payments for each client to the nearest integer. Output specification: Show one integer (to the screen). Sample input: 3 670 12 25 16
Output: 5931
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
