# IT/210 CheckPoint Iteration Control Structure

posted by .

Need help with this! Uses a while counter loop

In front of you is a non-see through bag containing 50 red balls and 50 black balls. You are to design a solution that will allow you to draw one ball at a time until 12 red balls are drawn. At the end of the program you will display a message stating how many balls were drawn and how many of them were black.

## Similar Questions

1. ### math

A bag soccer balls contains 8 balls with black design and 7 balls with red design with no other types of soccer balls. Coach graves reaches into the bag and randomly pulls out two soccer balls. please check my answer a) explain these …
2. ### algebra...urgent help

A bag soccer balls contains 8 balls with black design and 7 balls with red design with no other types of soccer balls. Coach graves reaches into the bag and randomly pulls out two soccer balls. please check my answer a) explain these …
3. ### Math

my problem is: From the box containing 5 red balls, 7 blue balls, 10 black balls. you select 4 balls what is the probabilty that EXACTLY 2 balls are black. so i know how to start it c(10,2)c(2,1) ---------- c(22,40 but how do you solve …
4. ### Math

my problem is: From the box containing 5 red balls, 7 blue balls, 10 black balls. you select 4 balls what is the probabilty that EXACTLY 2 balls are black. i know that you start it/set it up like this: c(10,2)c(2,1) divided by c(22,4) …
5. ### Maths

Bag A contains 2 white, 1 black and 3 red balls, Bag B contains 3 white, 2 black and 4 red balls and Bag C contains 4 white, 3 black and 2 red balls. One Bag is chosen at random and 2 balls are drawn at random from that Bag. Of the …
6. ### Math

A bag contains three black balls, four white balls and five red balls. Three balls are removed without replacement. What is the probability of obtaining a one of each colour b at least two red balls ?
7. ### Statistics HELP

There are two bags each containing red balls and yellow balls. Bag A contains 1 red and 4 yellow balls. Bag B contains 3 red and 13 yellow balls. Alva says that if we choose one bag and draw one ball from that bag you should always …
8. ### GEOMETRY

from a bag containing 6 white balls, 3 black balls and 13 red balls, two balls are drawn at random. what is the probability that they are both red?
9. ### Math

Mohit put 6 red balls and 7 black balls into a bag. What fraction of the balls are red balls?

More Similar Questions