Design a program that generates a 7-digit lottery number

Design a program that generates a 7-digit lottery number. The program should have a interger array with 7 elements. Write a loop that steps through the array, randomly generating a number in the range of 0 through 9 for each element ( use the random function that was discussed in chapter 6) Then write another loop that displays the contents of the array.

1 DEVELOP AN UNDERSTANDING OF THE PROBLEM.

2 DEVELOP A SOLUTION ALGORITHIM

3 AND CODE A RAPTOR CHART OF YOUR SOLUTION.

 

 

fivewriters
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!