you have a purse which contains six coins, each coin is either a
penny , a...
you have a purse which contains six coins, each coin is either a
penny , a two pence coin, a ten pence coin or a twenty pence coin.
find the expected total value of all the coins in the purse.
JAVA PROGRAMMING
Implement a class Purse. A purse contains a collection of coins.
For simplicity, we will only store the coin names in an
ArrayList<String>.
Supply a method void addCoin(String coinName).
Add a method toString to the Purse class that prints the coins
in the purse in the format Purse[Quarter,Dime,Nickel,Dime].
Write a method reverse that reverses the sequence of
coins in a purse.
Implement a TestPurse class with a main method in it. It will
use the toString method to...
A jar contains 100 coins. One of the coins is a trick coin
with heads on both sides. The other 99 coins are ordinary coins
with heads probability .5. A coin is selected at random. (a) What
is the probability the coin selected is the trick coin? (b) The
coin selected is tossed 7 times, and it happens to land heads each
of those times. Now what is the probability it is the trick
coin?
A box contains three fair coins and one biased coin. For the
biased coin, the probability that any flip will result in a head is
1/3. Al draws two coins from the box, flips each of them once,
observes an outcome of one head and one tail and returns the coins
to the box. Bo then draws one coin from the box and flips it. The
result is a tail. Determine the probability that neither Al nor Bo
removed the...
Construct the visualization matrix for the following coin
problem and find its optimal solution:
Coins: Penny, Nickle, Dime, and Quarter The amount= 27cents
USE DYNAMIC PROGRAMMING METHOD
Dynamic Programming
Let c[k,x] be the minimum number of
coins for the amount x using the first k coins.
Goal: find a
recurrence relation for c[k, x].
There are only two possible choices:
1.
amount x includes the largest coin which is dk
c[k, x] = 1 + c[k,...
coins have a mean of 2.5 g
32 coin sample
the sample coins have a mean weight of 2.49496
standard deviation of 0.01722g with a 0.05 significance level
to test the claim this sample from s population with a mean weight
of 2.5 gm
give test statistic and p value
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin
purse. You choose two coins from the purse at random. What is the
probability you draw out at least 20 cents?
A three of a kind in a five-card poker hand is obtained by
having exactly three of the same type of card (3 Js or 3 4s). What
is the probability that a randomly selected five-card hand is a
three of a kind?
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin
purse. You choose two coins from the purse at random. What is the
probability you draw out at least 20 cents?
A three of a kind in a five-card poker hand is obtained by
having exactly three of the same type of card (3 Js or 3 4s). What
is the probability that a randomly selected five-card hand is a
three of a kind?
A committee of...
You have 3 coins that look identical, but one is not a fair
coin. The probability the unfair coin show heads when tossed is
3/4, the other two coins are fair and have probability 1/2 of
showing heads when tossed.
You pick one of three coins uniformly at random and toss it n
times, (where n is an arbitrary fixed positive integer).
Let Y be the number of times the coin shows heads. Let X be the
probability the coin...
Consider an experiment in which three different coins (say a
penny, a nickel, and a dime in that order) are tossed and the
sequence of heads and tails observed. For each of the following
pairs of events, A and B, give the subset of outcomes that defines
the events and state whether the pair of events are mutually
exclusive, collectively exhaustive, neither or both. (a) A: The
penny comes up heads. (b) A: The penny comes up heads. B: The...
Conditional probability
You have two coins in your pocket. One is a regular coin and the
other is a weighted coin that has a 75% chance of landing heads up.
You can’t tell the coins apart by inspecting them. You take a coin
out of your pocket and toss it. It lands heads up.
a. What is the probability that the coin is the fair coin?
b. How many times would you decide to flip the coin before you
are...