Write an object oriented Java program that can be used by the company to bill its customers.

Question

A certain mobile phone company charges its customers using per second billing. The tariff used is post paid. The following rules are used in the billing procedure.

(a)    Any call made after 6.00 a.m. to 6.00 p.m. is charged Kshs 4.00 per minute.

(b)   Any call made after 6.00 p.m. to 6.00 a.m. is charged Kshs 3.00 per minute.

(c)    In addition to the above charges one also pays 16% Vat for calls taking longer than one minute.

Required

 

Write an object oriented Java program that can be used by the company to bill its customers. The program should use system clock. One should not enter start time and end time. This should be captured automatically when the call starts and ends.

Related posts

Latest posts

Leave a Comment

Leave a Reply

Your email address will not be published.