Question
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.
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.
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
(copy+paste it into your address bar and remove the space)
pastebin. com/A1MZvUyJ
OH My Gosh I Love you!
Thanks Helpful Dude
Thanks Helpful Dude
No problem! I'm just so happy that this question falls under an area that I am so proficient in!
Related Questions
I must write a program using Java that calculates the amount a person would earn over a period of ti...
I need help with my Java homework!
Write a program that calculates a customer's monthly bill. It...
write a program that calculates a customer's monthly bill. it should input customer name, which pack...