Show a typical print-out of your program

Assignment Help Mechanical Engineering
Reference no: EM131343003

Rolling a die with a computer

For this problem, either modify the VPython program (OneDie PARTIAL.py) supplied, or write your own from scratch, using whatever computer language you prefer.

1. Write a program (or modify the one given) to calculate and print out the histogram of the number of times each side occurs, the deviation of this number from one-sixth of the number of trials, the frequency with which each side occurs, and the deviation of this from one sixth. Hand in a copy of the code you used.

2. Show a typical print-out of your program.

3. Run the program for various numbers of random integers, starting with a small number, say 10, and increasing to a substantially larger number. The only upper limit is that the program should not take more than about one second to run. ([Your time is valuable.) THIS IS A COMPUTATIONAL PROBLEM. ANSWERS MUST BE ACCOMPANIED BY DATA. Please hand in hard copies for all data to which you refer in your answers

4. As the number of trials increases, does the magnitude (absolute value) of the differences between the number of times a given side occurs and one-sixth of the number of trials increase or decrease?

5. As you increase the number of trials, does the ratio of the number of times each side occurs to the total number of trials approach closer to 1/6?

Reference no: EM131343003

Questions Cloud

Proteins in prokaryotic gene regulation : What regulatory proteins in Prokaryotic gene regulation share the common characteristic of forming DNA loops when they are functioning? Be specific
What ops techniques would be helpful in running : What OPS techniques would be helpful in running this business? What value did each department bring to the success/failure of your business?Role of Business Integration-.expand on lessons and integrate on how you view the impact on the functioning/..
Efficient use of bacterial resources : In terms of the efficient use of bacterial resources, explain why it is necessary for lac operon expression to be controlled both by the lac repressor and by a cyclic AMP receptor protein.
What is common characteristic : The lac operator binds the lac repressor. The DNA sequence of the lac operator shares a characteristic with the DNA sequences of the binding sites of many restriction enzymes. What is this common characteristic?
Show a typical print-out of your program : As you increase the number of trials, does the ratio of the number of times each side occurs to the total number of trials approach closer to 1/6?
How might the image fit into the pattern of book as a whole : Does an image here remind you of an image elsewhere in the book? Where? What's the connection? How might this image fit into the pattern of the book as a whole?
What you understand by coordination and coherence : Explain, with the aid of examples where appropriate, what you understand by coordination and coherence in the context of cooperative distributed problem solving systems - Briefly identify the main advantages and disadvantages of specifying tasks v..
Methods of evaluation and control for biological agents : In addition, you have been asked to include information regarding the basic exposure mechanisms for biological agents, methods of evaluation and control for biological agents, and methods of sampling for biological agents.
Describe the heritability coefficient : Compare and contrast the following psychological theories of concepts and categories: family resemblance theory, prototype theory, and exemplar theory. Describe the heritability coefficient. What factors can influence the size of this statistic

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd