anonymous
2008-04-09 19:59:15 UTC
A: For $9.95 per month 10 hours of access are provided. Additional hours are
$2.00 per hour.
B: For $13.95 per month 20 hours of access are provided. Additional hours are
$1.00 per hour.
C: For $19.95 per month unlimited access is provided.
Write an interactive Java program (e.g. Bill.java) that calculates a customer's monthly bill. It should ask the user to enter the letter of the service package the customer has purchased (A, B, or C) and the number of hours (integer) that were used. It should then display the total charges. If an invalid package (other than (A, B, or C) or invalid number of hours (<0 or > 30*24) is input, the program should report it and ask for new input until the valid input is given.The program should use constants (declared with the modifier final) to represent the
base rates, per hour rates and base hours.