Question: Please follow direction Lottery Winer Your program Assignment Basic Steps in Creating your Program A lottery ticket buyer purchases 10 tickets a week, always playing
Please follow direction
Lottery Winer Your program Assignment Basic Steps in Creating your Program A lottery ticket buyer purchases 10 tickets a week, always playing the same 10 5-digdet "lucky" combinations. Write a program that Initlallzes as array or a vector with these numbers and then lets the player enter this week's winning 5 digit number. The program should perform a linear search through the list of the player's numbers and report whether or not one of the tickets is a winner this week. Here are the numbers 1. Plan your loglc before working on the project and revlew the syntax you wll use In the project. Thlnk about how you want the lines of output to be displayed to the user. You will want to tell the user what the program does and what type of input you expect from the user (Introduction to the User). Select names of the varlables you will use 2. Create a C++ project in Visual Studio 2012. And have the code 13579 2679 26792 33445 55555 window open to write the project code. Display Using Visual Studio to create your program in C+ and follow the instructions on creating the 62483 77779422 85647 93121 Create a menu to be able to enter a number and then check it. Declare variables to hold information about USER. Using cout Set up information about this program and what the . Examplc: user will enter and results expected .Ask the user to enter some Information requested and save the Enter uinning lottery nunbera Display additional infornation about the progran response to a varlable using the cout and getline(cin, name) syntax. If the cin Is used for a number, make sure you use the ignore) syntax. Make sure the posltion for the user to enter Information is on the same line as the request for information Use line spacing (endl or ) to separate lines of output to make it easy for the user to read the information. 3. Documentation: All lines of code must be documented. Use the syntax to designate lines in code as comments //) The progran atarta with the lucky numhera you play each week in he lottery: . These comments can be at the end of a line of code or in a group 6253: 99: 34 136 13579, 26291 26792. 33445.55555 definition at the beginning of a section of code. All methods and function need a group heading document. 4. Run the program using Ctrl+F5. Debug the code, making sure all 5. Include the looping control structure so that the user can repeat the 6. In displaying the output correctly formatted. Remember to use the Selection 1 then conpares that sequence of nunbers with calculations are correct and the line spacing is suitable for readability ur Fauorites. It then gives you the reaulta of the conparison. dicating whether you won Chopefully> or lost reas any key to continue entry of information without the program exiting. Ask the user it they want to run the program again or exit. setorecisian), fixed and set to correctly format numbered output if
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
