flowchart design a program that generates a 7-digit lottery number. the program should have an integer 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.