Outline of the problem
As an employee of a software company, you have been asked to develop an electronic billing system. The system will be part of a web site of a privet company that provides electricity to the customers. The idea is to reduce cost by providing online billing system which will replace existing pay by phone system. Online system will also reduce the time customer spends to make a payment. The payment process gets delayed due to calling centres being busy most of the time.
Your job as a programmer is to write a program in Java that will allow a customer to make a payment online.
This means that your program must calculate customerís electricity bill.
A bill includes a quarterly £20 charge plus a consumption (use) charge of £0.07 per unit.
Consumption is calculated from meter readings taken recently and at the end of the previous quarter (a customer is expected to enter this data).
The payment should be made within fifteen days of the end of present quarter.
Every payment must be checked for late payment and a £10 fee should be added for overdue payment.
A discount of 10% will be applied to all customers who pay their bills within seven days of the end of the present quarter.
You are also required to log the time a customer spends to make a payment. Customer should be able to request a report about the payment, which should be in a printable format.
The company accountant should be able to view the same report.