Write a program that uses random function to randomly generate 6 integers between 0 and 99 with 0 and 99 included. Save them in a Bag. Ask a user to make a guess. If the user’s guess is one of the numbers in the Bag, then give user 10 points and remove the number from the Bag. Allow the user to make 10 attempts. Each time give user 10 points if the number user guess is in the Bag. If the Bag is getting emptied before the user reach 10 attempts, then give user an additional 200 points and terminate the program (Game is over!). If the Bag is not empty after the user use up all 10 attempts, then display the user’s score and terminate the program (Game is over!). **Note** I am having trouble figuring out the 10 attempts and random numbers part of the program.
Write a
Ask a user to make a guess. If the user’s guess is one of the numbers in the Bag, then give user 10 points and remove the number from the Bag.
Allow the user to make 10 attempts. Each time give user 10 points if the number user guess is in the Bag.
If the Bag is getting emptied before the user reach 10 attempts, then give user an additional 200 points and terminate the program (Game is over!).
If the Bag is not empty after the user use up all 10 attempts, then display the user’s score and terminate the program (Game is over!).
**Note** I am having trouble figuring out the 10 attempts and random numbers part of the program.

Step by step
Solved in 4 steps with 2 images









