Computer Science, asked by shalini2306, 3 months ago

Define a class Bill in OOP with the following specification:
Private members:
1. Bill_no - type long(bill number)
2. Bill period - type integer(number of months)
3. No_of_calls - type integer(number of mobile calls)
4. Payment_mode - type string("online" or "offline")
5. Amount - type float(amount of bill)
6. Calculate_Billo function to calculate the amount of bill given as per the
following conditions:
Calculation Rate/call
No_of_calls
(in rupees)
<=500
1.0
501-1200
2.0
>1200
4.0
Public members:
1. A member function New Billo that will accept the values for Bill no,
Bill period, No of calls, Payment mode from the user and invoke
Caluclate Billo to assign the value of Amount.
2. A member function Print_Billo that will display all details of a Bill.

pls answer this fast​

Answers

Answered by prasanthichodipilli
0

Answer:

class Bill

{

Explanation:

i hope you understand it

Attachments:
Similar questions