Lab 6 Simulation of Random Systems.docx

# This command will generate a single random integer

• Lab Report
• 7

This preview shows pages 1–5. Sign up to view the full content.

This command will generate a single random integer, either 1 or 2, and store that value in the variable flip. We will assume that a 1 is a heads and a 2 is a tails. 5) Display the number of times each outcome occurs as well as compute and display the probabilities (as a percentage) for each outcome

This preview has intentionally blurred sections. Sign up to view the full version.

This preview has intentionally blurred sections. Sign up to view the full version.

Mass of vehicle Mass of shock absorber Figure 1: Simplified Vehicle Suspension Model Shock spring Tire spring y1 y2 C. Effects of Tolerance on a System Now that you’ve had a chance to simulate a random process, let’s move on to something more interesting (i.e. challenging). When designing an actual system, the components that you use will have some tolerance range that determines how they will perform. For instance, if you’ve taken ENED1020, you saw during the basic electricity experiment that resistors have a tolerance, usually on the order of 5-10%. What that means is that the value of the resistor may vary from the expected value by 10%, both above and below that expected value. This variance in the actual resistance, if not taken into account when designing a circuit, can cause issues in the functionality of the system. The same holds true for the output of motors, the strength of steel beams, or, in our case, the spring constant of a spring. The system that we will be modeling is that of the suspension in a car. In most cars, the suspension consists of two parts: the shock absorber and the tire.
This is the end of the preview. Sign up to access the rest of the document.
• Fall '13
• ossman

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern