Generate a lottery of a three digit number. The program prompts the user to enter a three-digit
Fantastic news! We've Found the answer you've been seeking!
Question:
Generate a lottery of a three digit number. The program prompts the user to enter a three-digit number and determines whether the user wins according to the following rules:
If the user input matches the lottery number in the exact order, the award is $10,000.
If all digits in the user input match all digits in the lottery number, the award is $3,000.
If one digit in the user input matches a digit in the lottery number, the award is $1,000.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: