voida
void
Write
the fi
5. Define a dass Telephone having the following description:
Data members
int prw.pre
to store the previous and present meter reading
int call to store the calls made lie pre - pry)
String name to store name of the consumer
double amt
: to store the amount
double total to store the total amount to be paid
Member functions:
void input)
void call)
Calculates the amount and total amount to be paid
void display() Displays the name of the consumer, calls made, amount and total
amount to be paid
8. Ba
conditions and display the output as per the given format.
Rate
Calls made
Up to 100 calls
No charge
For the next 100 calls
For the next 200 calls
90 paise per
calls
80 paise per calls
70 paise per calls
More than 400 calls
However
, every consumer has to pay 3180 per month as monthly rent for availing the
service.
Output:
Name of the customer
Calls made
Amount to be paid
Stores the previous reading, present reading and name of the consumer
Write a program to compute the monthly bill to be paid according to the given
Attachments:
Answers
Answered by
0
Answer:
ba
Explanation:
please mark as branliest answer
Similar questions