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

  Application of advanced kinetic and kinematic concepts

Demonstrate application of advanced kinetic and kinematic concepts to various mechanisms both from a practical and theoretical context Recognise, Develop and Solve numerical problems related to kinetic and kinematic based mechanisms.

  Steam with a mass flow rate

Steam with a mass flow rate of 200,000 lb/hr enters a well insulated turbine at 1100 psi, 900degreeF through a duct with a flow area of 1ft^2. A portion of the steam is extracted at p=130psi,T=380degreeF and exits through a 1 ft diameter duct at v=60..

  Determine specific flow availability of refrigerant in tube

Determine the specific flow availability of the refrigerant in the tube when the local environment (ground state) is saturated liquid Refrigerant-134a at 0.00°C.

  Determine the net work of the cycle in kj and the heat

a gas within a piston-cylinder assembly undergoes a thermodynamic cycle consisting of three processesprocess

  Width from plate for values of the critical reynolds number

Consider atmospheric air at 25 degrees Celsius and a velocity at 25 m/s flowing over both sides of a 1  eter long flat plate that is maintained at 125 degrees Celsius. Determine the rate of heat transfer per unit width from the plate for values of th..

  Find the missing properties

Find the missing properties of T, P, v, u, h and x if applicable and plot the location of the three states as points in the T-v and the P-v diagrams

  An escalator brings four people of total 300 kg 25 m up in

an escalator brings four people of total 300 kg 25 m up in a building. explain what happens with respect to energy

  The wearing parts of a coal mining machine

The wearing parts of a coal mining machine are made of hardened tool steel, but are rarely, if ever, lubricated. The left and right wear plates for a typical tracked vehicle measure 48" long by 6" wide, and each tests at 360 HB. The vehicle weighs 10..

  The henrys law constant of oxygen is 074mmhg mu m determine

the concentration of oxygen dissolved in both arterial and venous blood can be determined using henry law pihici. where

  Compute the position of the quasi-fermi

calculate the position of the quasi-Fermi levels for electrons and holes with respect to the intrinsic level (assume that ni=1.5x10^10cm^-3).

  Design a transmission that will be compact and quiet design

a gearbox is needed for an input shaft that rotates at 1000-1600 rpm and an output shaft that rotates at 75 plusmn1 and

  The air passing through the valve has a speed of 300 ms and

a tank of 0.05 m3 volume air at 800 kpa absolute and 15 c. at t0 air begins escaping from the tank through a valve with

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