Page 25 - C++
P. 25

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_Bill()  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
                            Also,  the  value  of  Amount  should  be  reduced  by  5%  if  Payment_mode  is

                     “online”.


                     Public members:

                         1.  A  member  function  New_Bill()  that  will  accept  the  values  for  Bill_no,
                            Bill_period,  No_of_calls,    Payment_mode  from  the  user  and  invoke

                            Caluclate_Bill() to assign the value of Amount.

                         2.  A member function Print_Bill() that will display all details of a Bill.











































                                                         Page No. 8
   20   21   22   23   24   25   26   27   28   29   30