Question: AaBbCr AaBboot AaB AaBbCe Styles Professor Specioso For Loop Lab In Class Assignment 12 Computer StudiesCSC 162 The program will simulate the flip a coin
AaBbCr AaBboot AaB AaBbCe Styles Professor Specioso For Loop Lab In Class Assignment 12 Computer StudiesCSC 162 The program will simulate the flip a coin 100 times. It will record/count how many times the result is heads and how many times the result is tails. It will display the total number of Heads and Tails. IN VISUAL BASIC PROGRAMMING 1 You will need a For Loop that will execute 100 times 2 Within that For Loop you will need to get a random number with a range from 1 to 2 3. If the Random number is a 1, then the result of your coim toss is heads and you need to 4 Else, the Random number anust be a 2, then the result of your cois toss s tals and you 5. After the For Loop is done executing, the Head counter and the Tail counter wall have the 6Place these totals in a list box with the following format increment the Head counter by 1 need to increment the Tail counter by 1 results of how many times you flapped heads and tals Heads 48 Tails 52 Heads 51 Tails 49 Set the Font of the list box to Counier to have everything line up nicely 7. You will need to use ybTab to get your outjput to display in column fashon 8. Allow me to play another sound 2 so clear out all your totals when you are done with 100 laps 9. Prompt the user on the exit if they seally want to exst 10. Prompt the user on the clear sf they really want to clear the list box acer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
