Question: 0 . 1 0 - 9 . The class should have a methad that accepts ar arfoy of Sike integers that represent a persen's lottery

0.10-9. The class should have a methad that accepts ar arfoy of Sike integers that represent a persen's lottery picks. The method is 80 compse the coresponding edements in the two armys and return the number of digls that mateh
Write a Lotzecy class that abks the user wo enter the numbers. The class should display the number of digits that match the randomly generaled botery numbers. If al the digits mateh desplay message peoclaiming the Uset a grand arize whner
Sample rur:
LutteryNumbers sray (genarate randomtyk
1
\table[[7,4,9,1,3]]
Users array sinpi, by usery
\table[[4,2,9,7,3]]
Oupout: There are tap matching digits lat index. 2 and ndex 4}
 0.10-9. The class should have a methad that accepts ar arfoy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!