Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

3. How has Starbucks changed since its early days?

Answered: 1 week ago