Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please provide a picture of what front panel & block diagram look like in lab view 2. Create a coin toss program that generates that
please provide a picture of what front panel & block diagram look like in lab view
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 programin 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 'i' 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started