Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 307 Weeks Ago, 6 Days Ago |
Questions Answered: | 66690 |
Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a program that simulates a lottery. The program should have array of 6integers named winning_numbers, with a randomly generated number in therange of 1 through 9 for each element in the array. The program should ask userto enter 6 numbers and store them in another integer array named player. Theprogram then compares the numbers in 2 arrays to find out how many numbersmatch. The program output should display the winning numbers, player’snumbers, and how many numbers matched. For instance, if yourwinning_numbers are 3,5,9,1,4,7 and your player’s numbers are 2,5, 7,1, 9,8,then you have two matches (5 and 1).Input Validation: Do not accept player’s number out of range of 1-9.Create a new project and name it FirstName_LastName_A7. Submit zipped
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll