according to the following rule: a) If the user input matches the lottery in exact order, the award is RM5,000 b) If the user input matches 4 digits in different order, the award is RM2,500 c) If any 3 digits in the user input matches the lottery in exact order, the award is RM1500 d) If any 3 digits in the user input matches the lottery in different order, the award is RM1000 e) If any 2 digits in the user input matches the lottery in exact order, the award is RM500 f) If any 2 digits in the user input matches the lottery in different order, the award is RM200 LOTTERY ? Enter your 4-digit lottery number: 4563 OK Cancel LOTTERY CONGRATULATIONS! Lotto Your number 4563 matches the lottery in exact order! You have won RM5,000!!! OK Note: 1. If the user keyed in less than four digits or more than 4 digits prompt an error message and urge the user to key in again the numbers. 2. Use window for input and output. 3. If it's not matched your window color will be in yellow (border red) and display "Sorry it does not match and please try again!" The text in output should be in bold & larger in size. X 4. 5. Make sure your output should be the same as shown in your attachment. 6. Note: You are NOT allowed to use Array. (20 marks)
Fig: 1