Question: Lottery ticket Java program Write a program to: Input a string of winning lottery numbers separated by read in the six numbers of your lottery
Lottery ticket Java program
Write a program to: Input a string of winning lottery numbers separated by read in the six numbers of your lottery ticket check to see how many of your numbers are in the list Sample run (user input is shown in bold underline): Enter the winning numbers separated by ':': 9:11:23:34:40:45 Enter your ticket numbers one at a time (0 to quit): 8 Enter your ticket numbers one at a time (0 to quit): 11 Enter your ticket numbers one at a time (0 to quit): 23 Enter your ticket numbers one at a time (0 to quit): 35 Enter your ticket numbers one at a time (0 to quit): 40 Enter your ticket numbers one at a time (0 to quit): 45 Enter your ticket numbers one at a time (0 to quit): 0 4 numbers match
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
