create program on eclips java
Call TolFrom Date Minutes 809-324-8278 Wed Sep 12 17:08: 11 EDT 2007 65 809-324-3435 Wed Sep 12 18:21:11 EDT 2007 20 809-324-8278 Wed Sep 13 12:20:10 EDT 2007 75 809-324-8278 WedSep 1413:21:11 EDT 2007 13 809-324-3435 Wed Sep 12 18:21 :11 EDT 2007 203
Off-Peak false true false false true
cose 210 - COSC 210- Object Oriented and GUI Programming Assignment 3 Problem Statement
The cellular telephone company CellsRUS would like to print the following sample statement:
CellsRUS Invoice Date: Wed Sep 15
Customer: Bill Jones Plan Price: $ 45.00 Peak Minutes Included: 100 Peak Minutes Used: 153
Telephone: 800-555-8594 Rate For Extra Minutes: 0.35 Off-Peak Minutes Included: 300 Off-Peak Minutes Used: 223
Amount Due: $ 63.45
Develop java classes (Hint you need at least three) to represent the data in memory and test program to print the invoice.
Notes: "Off-Peak" are minutes that start after 6:00 PM. All the minutes for a call that starts before 6:00 PM and continue past 6:00PM are considered to be peak minutes.
"Amount Due" = plan price + ( total on peak minute - peak minutes included) * rate for extra minutes +
(total off peak minute - off peak minutes included) * rate for extra minutes
In the above calculations, if the total is less than the minute included then use zero for the difference.
Suggestions: Use an array for the call log. Have your invoice class have an addCallLog method to add entries to the call log. Provide instance variables for the calculated values (your will need to figure out how and when to calculate these).