Design an online lottery game in C++ which will randomly store 6 number in the range of 1 to 30 as the winning numbers. Then it will ask the user to enter 6 numbers of their choice and match with the winning numbers. It should display the following: “Jackpot” for all 6 matches, “lucky five” for five matches, “super four” for four matches and “sorry, try again” for anything less than 4 matches. Your program should validate the input to be in the range of 1-30. It should also ensure that no values entered are repeated.
Question 1: Draw a flowchart for the above question
Question 2: Write a C++ program for the above situation.
Please can some help me in writing above program and drawing a flowchart on it.