Define a class Bill that calculates the telephone bill of a consumer with the following
description:
Instance variables data members:
int bno : bill number
String name : name of consumer
int call : no. of calls consumed in a month
double amt : bill amount to be paid by the person
Methods/
Member functions:
Billo : constructor to initialize data members with default initial value
Bill(...) : parameterised constructor to accept billno, name and no. of calls
consumed.
Calculate() : to calculate the monthly telephone bill for a consumer as per the following
condition
Units consumed
Rate
First 100 calls
0.60/ call
Next 100 calls
Next 100 calls
0.80/ call
1.20/ call
1.50/ call
Above 300 calls
Fixed monthly rental applicable to all consumers: 125
Display(): to display the details
create an object in the main() method and invoke the above functions to perform the desired task.
Answers
Answered by
0
Answer:
1. Different modes of communication are used to provide information, to educate as well as to entertain.
2. Through newspapers, radio and television we can communicate with a large number of people.
3. The satellites have made communication even faster. Satellites have helped in oil exploration, survey of forest , underground water, mineral wealth ,weather forecast and disaster warning.
4. Now we can send electronic mails or e mails or e- mails through internet.
5. Wireless telephonic communications through cellular phones have become so popular today.
6. Internet has made our lives more comfortatble. Now we can reserve tickets for railways , airways and even cinemas and hotels sitting at home
Explanation:
Similar questions