Computer Science, asked by sambodhrathbu, 4 months ago

Question-5
(15)
A class Telcall calculates the monthly phone bill of a consumer. Some of the members of the
class are given below.
Data members:
Phno :phone number
Name :name of consumer
number of calls made
amt
:bill amount
Member methods:
Telcall()
:parameterized constructor to assign values to data member
Void compute() to calculate the phone bill amount based on the slabs given below:
Number of calls
Rate
1-100
Rs 500/- rental charge only
101-200
Rs1.00/- per call rental charge
201-300
Rs1.20/- per call rental charge
Above 300
Rs 1.50/- per call rental charge
Void display : To display the details in the specified format
Phone number
Name
Total calls
Amount
Create an object of the class and call the above member methods.






plzz tell me the answer ​

Answers

Answered by seemakachhap15
7

Answer:

OK I will be telling you in just a minutes

Answered by sunil7004498759
2

Answer :

Answer is given in the photo.

Attachments:
Similar questions