While / Do While Loop Questions 1) Make the computer randomly generate numbers between 1 and 10. This random generator must never choose the number 7 (Only Mr Guzy may have this number). Use a while loop to generate the numbers such that 7 is never chosen. Display the number on the screen. You can slow down your game by changing the frame rate so you numbers are visible Change the 60 to 1000 1b) Upgrade your program to keep track of how many 1's, 2's, 3's etc have come up. Display the results. You can speed your game up back to 60 2) Use this: inputString = prompt("Say my name!", "the answer is Heisenberg"); inputString is just the name of a variable I made up. You can can it whatever you want. prompt will put up message box for text input. Use this inside a DO WHILE loop (it will be the only line in the loop). Have the loop continue asking until the user types in "Heisenberg" 3) Write a program that does this: You have a base with 25 soldiers. There are 50 mutant creatures outside. The soldiers are defending the base. Using a while loop determine the outcome of the "battle". Simulate the battle 1 soldier at a time. -Use a random number generator to determine if the soldier gets eaten or if a mutant dies. -Keep running the while loop until all the soldiers are gone How the odds are done (30% chance a mutant gets it etc) is entirely up to you.