An electricity company charges their consumers according to the units consumed per month according to the given tariff: Class name: electricity_bill Data members: int units double charges, amount Units Consumed Charges Up to 100 units 2 per unit More than 100 units and up to 200 units 1.80 per unit More than 200 units 0 1.50 per unit Methods: void input(int, double) int calculate() void display() In addition to the above, every consumer has to pay a 200 as Service Charge per month. Write a program to input the amount of units consumed and calculate the total charges payable (Bill) by he consumer.
Answers
Answered by
0
Answer:
More" (and any subsequent words) was ignored because we limit queries to 32 words.
Similar questions