Question: Challenge Yourself Coding Activity The Lottery program Again Due Monday October 12th 2020 at 11:59 pm You will make a program that creates and

Challenge Yourself Coding Activity The Lottery program Again Due Monday October 12th 2020 at 11:59 pm You will make a program that creates and uses a random value as well as manipulates string and character objects in order to make a lottery game. Make sure to include your full name in a comments field. Make sure to include your initials in the class name Hot2v1XXX where the XXX are your initials. Make sure all instructions and outputs for the user are explicit. First- create a single random integer named target in the range of 65-90. Prompt the user to enter their first name. Do not prompt for capitalization. Change their name to upper case. Use the last letter of their name to convert the character to an ascil code number named guess. You will then determine if they are a winner by: o If guess is exactly the same as the target reward them with $1000. o If guess has both digits as target but in the wrong order give them $100 o If guess contains only a single digit correctly- give them $1. Otherwise tell them no luck this time. Hints: use division and remainder to create 2 individual digits from the target and then the individual digits from the guess so that you can check for the winning combinations. So if the random value is 68 a name like Spud will earn $1000 since "D" in ascii is 68, while a name like Liv will earn $100 since "V" in asci is 86 and a name like Paul earns a dollar as "L" is 76. YOU DO NOT NEED TO KNOW THE ASCII VALUES OF THE CHARACTERS, you just need to program the algorithm correctly to solve the problem!
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Code import javautil class Main public static int getRando... View full answer
Get step-by-step solutions from verified subject matter experts
