Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop that stepsthrough the array, randomly generating a number in the range...


Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop that stepsthrough the array, randomly generating a number in the range of 0through 9 for each element.(use random function). Then write anotherloop that displays the contents of the array.  Python is the language, and this must be in flowchart form. Pseudocode will be sufficient though. Use only a single main module for all your code.
For your random number generator, useSet array[index] = random(0, 9) in a Processing symbol.
Wherearray is the name of your array andindex is your loop control variable.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here