I need help with my Java homework!

Write a program that calculates a customer's monthly bill. It should ask the user via dialog box to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the charges in a dialog box. The input and out put must be done using the dialog boxes.

Modify the program so it calculates and displays the amount of money Packaage A customers would save if they purchased Packages B or C, and the amount of money Package B customers would save if they purchased Package C. If there would be no savings, no message should be printed.

Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.

Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.

Package C: For $19.95 per month unlimited acess is provided.

3 answers

Here's some Java code that'll do the trick:
(copy+paste it into your address bar and remove the space)
pastebin. com/A1MZvUyJ
OH My Gosh I Love you!
Thanks Helpful Dude
No problem! I'm just so happy that this question falls under an area that I am so proficient in!