Computer Science, asked by lmax50731, 3 months ago

a) Design an algorithm using pseudo code for a program that uses functions to calculate the total bill for water consumption every month. The program uses two functions. One function to read user input and another function to calculate the total bill. The information required:
• Account number
• Previous meter reading
• Current meter reading
• Standing charge which is around KES 400.00
• Cost per unit of consumption
• Tax which is 3% of the consumption cost.
• Consumption is the difference between current reading and previous reading
• Consumption cost is the sum of standing charge and the product of consumption and cost per unit of consumption.
• Total cost of the bill is consumption cost plus the tax

Answers

Answered by parthdube447
0

Answer:

a) Design an algorithm using pseudo code for a program that uses functions to calculate the total bill for water consumption every month. The program uses two functions. One function to read user input and another function to calculate the total bill. The information required:

• Account number

• Previous meter reading

• Current meter reading

• Standing charge which is around KES 400.00

• Cost per unit of consumption

• Tax which is 3% of the consumption cost.

• Consumption is the difference between current reading and previous reading

• Consumption cost is the sum of standing charge and the product of consumption and cost per unit of consumption.

• Total cost of the bill is consumption cost plus the tax

Similar questions