Reference no: EM132522695
ICT102 Introduction To Programming - King's Own Institute
Assessment
Develop Java applications based on the given scenarios: individual assignment.
Purpose: This assessment will allow students to demonstrate their understanding of Java programming language covering all the concepts covered throughout the trimester and implementation of those concepts to develop a small java application based on the given specifications. This assessment contributes to learning outcomes c and d.
Assessment topic: Java applications
Problem 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.
Problem 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.
Problem 3: A programming Problem will be given to each student in their tutorial class. The student is required to complete the answer to the Problem by writing Java code under supervision from their teacher. The student will be asked to demonstrated their code is working and answer questions about their code from their teacher in their tutorial.
Attachment:- Introduction To Programming.rar