Question: using LabVIEW 2. Create a coin toss program that generates that simulates the toss of a coin. Use the Select function in the Comparison palette,

using LabVIEW using LabVIEW 2. Create a coin toss program that generates that simulates

2. Create a coin toss program that generates that simulates the toss of a coin. Use the "Select" function in the Comparison palette, where string constants "Heads" is wired to the True input and "Tails" is wired to the False input. The ouput of this function goes to a string indicator. To determining heads or tails, use a greater than function to determine if the random number generator (found in the Numeric Palette) is greater than 0.5 (the Random Number Generator function returns a floating-point number between 0 and 1). The program should not run once then terminate, instead insert your code in a while loop that turns at least 10 times, then shows the result of the coin toss. (The while loop's ' loop counter wired to another " > " function \{has a Boolean T or F output\} which is then wired to the conditional "STOP" terminal). This will simulate the coin flipping, which is what you expect as the coin turns over and over until it lands. To show that the Boolean output can be used by multiple indicators, include an LED indicator for this output and a delay (in this case, maybe 500ms ). The user will then see the coin flipping since the string indicator and LED indicator will update with each turn of the while loop. Courageous users can explore using the "picture ring" indicator with two images, one heads, one tails

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!