Question: i really need a simple code beginner as possible ... ( java ) please ! simple as possible, (we didnt het up to we didnt

i really need a simple code beginner as possible ... ( java ) please ! simple as possible, (we didnt het up to we didnt get ip to buffer reader or inputstream.)
i really need a simple code beginner as possible ... ( java

Question 1 (60 points) (Extension of the participation Week 3 problem ) Write a method lottoNumFirstname that takes in a winning lottery of a three-digit number (selected by random number generator ), prompts the user to enter a three-digit number, and determines whether the user wins according to the following rule. Please use a solution that includes numbers only and no strings: If the user input matches the lottery in exact order, the award is $10,000. If all digits in the user input match all the digits in the lottery number, the award is $7,000. For example lottery number 234 and guess number of 432 or 423 or 243 or 342 or 324 If two continuous digits in the user input match two continuous digits in the lottery number, the award is $4,000. For example lottery number 234 and guess number of 235 or 534. But for lottery number 234 guess number of 254 does not work. (Only if continuous.) In all other cases print "Sorry play again". For example lottery number 234 and guess number of 965 or 278

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 Chemical Engineering Questions!