Lab Experiment #5 Al Hussein Technical University 4. Iteration until integer equal five: write a program that randomly g
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Lab Experiment #5 Al Hussein Technical University 4. Iteration until integer equal five: write a program that randomly g
Lab Experiment #5 Al Hussein Technical University 4. Iteration until integer equal five: write a program that randomly generates an integer in the rang from 1 to 10 and iterates this random process until the integer equal 5. Hint: Use Random Number (0-1). 5. Write a VI that simulates simultaneously flipping four coins and determine how many of these coins land in the head state for N trails. Then, after the N trails are complete, plot a histogram on a waveform graph that displays the number of trails whose outcomes was 0, 1, 2, 3, or 4. 6. Write a VI that compute the total pay for an employ if he/she earn one the first day 1 dollars, two dollars in the second day, 9 dollars on the third day, 27 dollars on the fourth day, and the payment continue to double on each subsequent day up to day 30. 7. Write a VI that evaluates the following sum at 300 equally spaced x-values in the rang from x = 0 to x = 67 ( for three cycles of the first sine function in the sum) and then, plot the resulting y vs. x on a Waveform Graph whose x axis is calibrated in radians: y(x) = (sin(x) + sin(3x) + sin(5x)) References 1. Hands-On Introduction to LabVIEW for Scientists and Engineers 2nd Edition 2. National Instruments LabVIEW Support.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!