Question: n Problem P 6 . 2 you had a defined set of data ( I . E . each set of random numbers was an
n Problem P you had a defined set of data IE each set of random numbers was an array of elements There are times when we do not know how many pieces of data will be in the set but are interested in the data located in a specific position. For this problem you will again use a For Loop to generate a set of Random Numbers. However, the input to the For Loop Count Terminal will be a piece of code rather than a constant. Use a Random Number Generator to provide a value between & inclusive as the input to the For Loop Count Terminal. Use the Random Boolean SubVI provided in HuskyCT to create a Boolean LED array. The Random Boolean SubVI will output a True or False Boolean for every execution of the For Loop. So your program will generate an array of Booleans LEDs and the array will vary in size from to elements. For the array of Booleans generated display the following information; The size of the array The Array of Booleans LEDs Determine whether the st element and the last element of the array have the same value Boolean True or False Add an LED a If the first and last element have a same value the LED will be on b If the first and last element have different values the LED will be off
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
