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.