Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the sub vi from part 1: Please do it in LABVIEW program. Please include block diagram and do not draw on paper. DUE IN 20

image text in transcribed

the sub vi from part 1:

image text in transcribed

Please do it in LABVIEW program. Please include block diagram and do not draw on paper. DUE IN 20 minutes. Ill give a thumbs up thank you!

4. In part 1 of this exam, I made the claim that on average you would need to roll a die 6 times to expect to get the second roll the same as the first. Let's test this claim. (a) Using the vi from part 1 as a subvi, write a vi that counts how many times you need to repeat the process (run the vi from part 1) until you get at least two of the same rolls (loop until the output of your part 1 subvi is greater or equal to 2). Create an indicator to display the number of times you need to repeat the process to get two or more same rolls. Run this a few times and you should get numbers around 6 but the number will be fluctuating quite a bit. NOTE: to make your vi from the last part of the exam into a subvi, all you need to do is wire its connector pane, make the icon and save it. It is fine that it also has a subvi inside (the one that rolls the dice) and you can just treat it as a "black box that gives you a number out that you check to see if it is greater or equal to 2. (b) Create a subvi out of part (a), then use it in another vi that averages the output part (a) a certain number of times (set by a control). Try averaging 10000 times, and you should get an answer fairly close to 6 for the average number of times you have to roll a die to get at least two of the same rolls in a row. #to average Average Tries 6.0771 10000 First Roll 1.23 JI: Last Roll 1.23 1:2 # of Same Rolls 1.23 4. In part 1 of this exam, I made the claim that on average you would need to roll a die 6 times to expect to get the second roll the same as the first. Let's test this claim. (a) Using the vi from part 1 as a subvi, write a vi that counts how many times you need to repeat the process (run the vi from part 1) until you get at least two of the same rolls (loop until the output of your part 1 subvi is greater or equal to 2). Create an indicator to display the number of times you need to repeat the process to get two or more same rolls. Run this a few times and you should get numbers around 6 but the number will be fluctuating quite a bit. NOTE: to make your vi from the last part of the exam into a subvi, all you need to do is wire its connector pane, make the icon and save it. It is fine that it also has a subvi inside (the one that rolls the dice) and you can just treat it as a "black box that gives you a number out that you check to see if it is greater or equal to 2. (b) Create a subvi out of part (a), then use it in another vi that averages the output part (a) a certain number of times (set by a control). Try averaging 10000 times, and you should get an answer fairly close to 6 for the average number of times you have to roll a die to get at least two of the same rolls in a row. #to average Average Tries 6.0771 10000 First Roll 1.23 JI: Last Roll 1.23 1:2 # of Same Rolls 1.23

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions