[1] A-11 B-2
IF -True
While 11>2 True
IF True A = 7 B = 6
While 7 > 6 True
If True A = 3 B = 10
While 3 > 10 False
End While
After instruction :
Box A : 3
Box B : 10
-------------------------------------------------
[2] A-5 B-7
IF - False
Else -
A = 12 B = 0
After instruction :
Box A : 12
Box B : 0
Assume two boxes (box "A" and box "B"). Each contains zero or more pennies. What will...
What will be left in a and b after the execution of the pseudo code below? Draw a flowchart for the code. a=4 b=10 while (a is less than b) do if (b is less than 12) then b=b+3 else a a +1 b b+2 endif a=a+1 while (b is greater than or equal to 14) do b=b-1 endwhile endwhile b=b+ 100
What will be left in a and b after the execution of the pseudo code below? Draw a...
(25) A game has two boxes as follows: Box A initially contains 2 white balls Box B initially contains 3 red balls. At each step in the game, 1 ball is selected at random from each box and the 2 balls are interchanged. Thus, Box A always contains 2 balls, and Box B always contains 3 balls. The game continues indefinitely. The game may be described by a Markov chain having three states: S0,S1,S2, whose subscript denotes the number of...
Question 29 (4 points) Two boxes each contain five numbered balls: • Box 1 contains balls with numbers 3, 3, 3, 4, 5 • Box 2 contains balls with numbers 1, 1, 2, 2, 2 (a) You will randomly select one ball from each box. Let X be the difference between the numbers selected from the first and second box. Find the probability distribution of X. You can simply list the probabilities for each possible value of X instead of...
A toy manufacturer inspects boxes of toys before shipment. Each box contains 12 toys. The inspection procedure consists of randomly selecting three toys from the box. If one or more of the toys are defective, the box is not shipped. Suppose that a given box has two defective toys. What is the probability that it will be shipped? a) 0.4242 b) 0.4545 c) 0.0455 d) 0.5455 e) 0.1091
5) Box 1 contains w white balls and b black balls. Box 2 contains w white balls and b black balls. We take one ball from Box 1 and place it into Box 2. Then we take a ball from Box 2 and place it into Box 1. Finally we take a ball from Box 1. Compute the probability that this ball is black 6) Assume that we have n boxes and each one of them contains k white balls...
3. Two boxes each contain three cards. The first box contains cards labelled-1,1 and 2; the second box contains cards labelled-2, -1 and 2. In a game, a player draws one card at random from each box and his score, W, is the product of the numbers on the two cards. w -4 -1 N 4 P(W =w) 1 9 3 9 1 1 9 a) Complete the above table. (4 marks) b) Find P(-2 SW 52). (2 marks) c)...
Two isolated boxes A and B each have single-particle energy levels 0,✏, 2✏, 3✏, 4✏, . . .. Box A contains two particles with total energy 2✏, whilst box B contains three particles with total energy 3✏. The particles are distinguishable and do not interact with each other. (a) Determine the total number of microstates ⌦A and ⌦B accessible to each box separately and show that the total number of microstates accessible to them jointly is, ⌦ = 30. 8...
6) Assume that we have n boxes and each one of them contains k white balls and n-k black balls. We choose a box at random and we choose two balls from it (after choosing the first one we are not allowed to put it back). Compute the probability that both balls are white.
6) Assume that we have n boxes and each one of them contains k white balls and n-k black balls. We choose a box at random and we choose two balls from it (after choosing the first one we are not allowed to put it back). Compute the probability that both balls are white.
2. Assume that OfficeMart places orders more frequently, but everything else remains the same. On your worksheet increase the number of orders from 4 to 20. (Prior to completing this requirement, change all worksheet figures back to their original amounts.) 1 Chapter 7: Applying Excel 3 4 5 Data Manufacturing overhead Selling and administrative overhead $ $ 500,000 300,000 Other 8 9 10 Manufacturing overhead Selling and administrative overhead Total activity Assembling Units 50% 10% 1,000 units Processing Orders 35%...