LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Probability of tossing a coin in specific sequence

Probability

  • Write a LabVIEW program to calculate the probability of tossing a fair coin up to N times. You will win if three tails appear before a head is encountered. What are your chances of winning?
  • Calculate the probability through exhaustively checking the condition for all combinations.
  • Put all combinations into a 1D solution array of cluster. Each element of the solution array is a cluster contains 1D Boolean LED array with each LED indicate head/tail of a coin tossed.
  • Test your program with N =7 first.
  • To test if the combination matching the condition, compare the last 4 tossing result with a 1D Boolean array constant FFFT (tail-tail-tail-head).
  • Hint 1: To generate a cluster element of the solution array, you can connect the 1D Boolean array through a single input bundle to get a cluster with single 1D Boolean element.

plz help me with it tks!

0 Kudos
Message 1 of 2
(121 Views)

Do you have problems understanding the questions of how to implement them in LabVIEW? What have you tried?

0 Kudos
Message 2 of 2
(101 Views)