Test Case 3 Check your lottery numbers here! In Enter number 1: \n 10 ENTER Enter number 2: \n 53 ENTER Enter number 3: \n 30 ENTER Enter number 4: \n 40 ENTER Enter number 5: \n 8 ENTER All set. The...


Write a program that checks to see if the user won the lottery. Assume the winning lottery numbers are 8, 13, 27, 53, and 54... Ask the user for five numbers and compare those numbers to the winning numbers to determine how many matches the user got. the order of the numbers doesn't matter.



Write in Java and use test case examples as a result.


Test Case 3<br>Check your lottery numbers here! In<br>Enter number 1: \n<br>10 ENTER<br>Enter number 2: \n<br>53 ENTER<br>Enter number 3: \n<br>30 ENTER<br>Enter number 4: \n<br>40 ENTER<br>Enter number 5: \n<br>8 ENTER<br>All set. The winning numbers were: 8 13 27 53 54 \n<br>Well, you didn't win. You got 2 matching number (s) \n<br>

Extracted text: Test Case 3 Check your lottery numbers here! In Enter number 1: \n 10 ENTER Enter number 2: \n 53 ENTER Enter number 3: \n 30 ENTER Enter number 4: \n 40 ENTER Enter number 5: \n 8 ENTER All set. The winning numbers were: 8 13 27 53 54 \n Well, you didn't win. You got 2 matching number (s) \n
Test Case 1<br>Check your lottery numbers here! \n<br>Enter number 1: \n<br>10 ENTER<br>Enter number 2: In<br>20 ENTER<br>Enter number 3: \n<br>30 ENTER<br>Enter number 4: \n<br>40 ENTER<br>Enter number 5: \n<br>50 ENTER<br>All set. The winning numbers were: 8 13 27 53 54 \n<br>Well, you didn't win. You got o matching number (s) \n<br>Test Case 2<br>Check your lottery numbers here! \n<br>Enter number 1: \n<br>10 ENTER<br>Enter number 2: \n<br>20 ENTER<br>Enter number 3: \n<br>30 ENTER<br>Enter number 4: \n<br>40 ENTER<br>Enter number 5: \n<br>8 ENTER<br>All set. The winning numbers were: 8 13 27 53 54 \n<br>Well, you didn't win. You got 1 matching number (s) \n<br>

Extracted text: Test Case 1 Check your lottery numbers here! \n Enter number 1: \n 10 ENTER Enter number 2: In 20 ENTER Enter number 3: \n 30 ENTER Enter number 4: \n 40 ENTER Enter number 5: \n 50 ENTER All set. The winning numbers were: 8 13 27 53 54 \n Well, you didn't win. You got o matching number (s) \n Test Case 2 Check your lottery numbers here! \n Enter number 1: \n 10 ENTER Enter number 2: \n 20 ENTER Enter number 3: \n 30 ENTER Enter number 4: \n 40 ENTER Enter number 5: \n 8 ENTER All set. The winning numbers were: 8 13 27 53 54 \n Well, you didn't win. You got 1 matching number (s) \n

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here