Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ help - write a program that picks lottery numbers for you and then checks to see if any of your selected numbers are the

C++ help - write a program that picks lottery numbers for you and then checks to see if any of your selected numbers are the winning number for the week
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions