CSC 15 Homework Assignment: While loop drills: 0. The following while loop prints the numbers from 0 to 99: i = 0 # loop counter while i<100: print i i= i+1 # end while print i # what is the value of the while loop after the it exists? Write a loop that prints the numbers from 100 down to 1, that is, 100 99 98 ... 1 1. Write a while loop that prints all odd numbers (1,3,5,7...) between 1 and 999 (inclusive) 2. The following code builds an array consisting of 10 copies of the string "hello": A = [] # array to be constructed, initially empty i = 0 # loop counter while i<10: A.append("hello") # append is a STATEMENT, so A is now changed i = i+1 # while print A # prints ["hello","hello","hello",...] Write similar code to construct an array with all the even numbers from 2 to 100, i.e, [2,4,6,8,...,100] When working with an array of integers, it is sometimes easy for beginners to confuse the INDEX or position of an array element with the element itself. For example, if M is the array [1,3,5,7,9] then A[3] == 7. In this expression, '3' is the index of the fourth element of the array (0 is the index of the first element). '7' is the element itself, that is, the content of the array at position 3. 3. Write code to construct an array with all powers of 2 from 1 to 32, i.e., the array [2,4,8,16,32,64,128,...]. There needs to be 32 elements in the array. 4. Write code to construct the array [1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4, ...]. The length of the array must be 400. 5. from random import randint # this line should be at the top of your file Write code to generate an array of 200 random integers between 0 and 1000. 6. Challenge: Now write code to find the sum of all the integers in the above array. For example, if the array is [5,6,2], you should be able to compute the sum 13. 6b. Mega Challenge: With the same array of random integers above, write code to find the smallest number that was generated. 6c. Giga Challenge: There could be more than one instance of the smallest number. That is, the smallest random number might be 3, but it could have been generated 5 times. Write code to find the number of times that the smallest number appears in the array.