Java applications -Description: This is practical assignment covering programming concepts taught… 1 answer below »

Assessment topic: Java applications

Description: This is practical assignment covering programming concepts taught from week 1 — 9. You should submit all your class file on Moodie with .Java extension in a single Zip/rar folder. Question 1: An online video streaming service has three different subscription packages for its customers: Package Lite: For $5 per month 5 hours of access are provided. Additional hours are $3.00 per hour. Package Regular: For $15 per month 30 hours of access are provided. Additional hours are $2.00 per hour. Package Unlimited: For $30 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the name of the package the customer has purchased (Lite, Regular, or Unlimited) and the number of hours that were used. It should then display the total charges.

In addition, calculate and display the amount of money Lite package customers would save if they purchased the regular or unlimited package, and the amount of money Regular customers would save if they purchased the unlimited package. If there would be no savings, no message should be printed. Question 2: Write a program that plays a simple dice game between the computer and the user. It uses an unusual dice that has 12 sides, with numbers that start from 10. When the program runs, a loop should repeat 5 times. Each iteration of the loop should do the following: o Generate a random integer in the range of 10 through 21. This is the value of the computer’s die. o Generate another random integer in the range of 10 through 21. This is the value of the user’s die. o The die with the highest value wins. (In case of a tie, you can randomly decide who wins.)

As the loop iterates, the program should keep count of the number of times the computer wins, and the number of times that the user wins. After the loop performs all of its iterations, the program should display who was the grand winner, the computer or the user.

Attachments:

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.