Problem statement
Assume that ABC telephone corporation offers three types of services for customers as
shown in the table below.
Home line Long Distance call Mobile phone line
Monthly subscription $10 $5 $25
Free calls (minutes) - - 100min
Excess airtime charge $0.08/min ($)/min lookup from
the oversea call table $0.20/min
Free SMS - - 200sms
Excess SMS charge - - $0.05/sms
The monthly subscription for home line is $10, customer will pay $0.08 per min of local air time. The monthly subscription for mobile phone line is $25, it comes with 100 minutes of free local calls and 200 free SMS. Any additional air time is charged at $0.20/min; and additional SMS is charged at $0.05/sms.
Customer with a home line and mobile line can subscribe to Long Distance call at an additional monthly subscription of $5. The rate per minute depends on the country. It is indicated in the Long Distance rate table.
Design the necessary classes and member functions to achieve the following tasks :
a. Allow user to enter customer information such as customer name, account number,address and type of phone line.
b. Accept entry of the number of minutes for local call, and/or long distance call.
c. Accept entry of the number of SMS.
d. Compute the local air time charges, and/or long distance air time charges based on the destination country.
e. Compute the total SMS charges.
f. Compute and output the detailed phone bill to a text file.
g. Additional features (Propose by students or given by lecturer) :
_________________________________________________________________
_________________________________________________________________
Country Rate/minutes
Australia $0.60
Hong Kong $0.50
Malaysia $0.20
Indonesia $1.20
Thailand $1.15
Thanks Peeps :) Let me know should there be any queries. I can mail you directly