Question: C++ help - write a program that picks lottery numbers for you and then checks to see if any of your selected numbers are the
This lab assignment gives you practice working with arrays including searching and sorting an array. Work with a partner on this project Create a Visual Studio C++ project using your lastname, first initial and Labl4 in the project name and .cpp filename (e.g. WinnerBA lab14 and WinnerBA lab14.cpp). Also include your name(s) in the header comments in the cpp file. Write a program that picks lottery numbers for you (using the random number generator) and then checks to see if any of your selected numbers are the winning main function, declare an integer array of size 10 to hold the lottery numbers picked. Pass th functions you write. For each step below, decide what arguments need to be passed to the function. Then add a function prototype before the main function, a function call in the main function and the function definition after the main function. number for the week. In your e array or other variables as needed to the First add the line #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
