Write a computer program that generates a sequence

Assignment Help Civil Engineering
Reference no: EM13559373

Write a computer program that generates a sequence of binomial random variables with parameters n=20 and p=0.3.

a) use the inverse c.d.f approach

b) use the property that the binomial random variable is the sum of n independent random variables each with parameter p.

Reference no: EM13559373

Questions Cloud

Bakelite isused between plates instead of air : How much charge can be placed on a capacitorwith air between the plates before it breaks down, if the area ofeach of the plates is 6.00cm2? Find the maximum charge if bakelite isused between the plates instead of air.
Find the orbital speed of the satellite : A satellite is placed in orbit 8.60*105 m above the surface of the planet Jupiter. Jupiter has a mass of 1.90 multiplied by 1027 kg and a radius of 7.14multiplied by 107 m. Find the orbital speed of the satellite.
National aeronautics and space administration studies : The National Aeronautics and Space Administration (NASA) studies the physiological effects of large accelerations on astronauts. Some of these studies use a machine known as a centrifuge.
Determine the detention time in hours for the chemostat : Perform a material balance on substrate (S) around a chemostat (completely mixed reactor without recycle) assuming a first-order removal for a substrate with a rate constant of 0.5 hr-1. The influent substrate concentration is 150 mg/L
Write a computer program that generates a sequence : Write a computer program that generates a sequence of binomial random variables with parameters n=20 and p=0.3.
How much do you expect to win from this game : Let m=100,p1=0.5,p2=0.1. Use Monte Carlo Simulation to find out: Should you join this game? How much do you expect to win from this game? Does it matter who goes first?
Calculate and display the time it will take to travel from : Transportation need to evaluate the time spent in traveling from city A to city B. The distance between the two cities is a variable because the macro developed is to be used for other cities. 50% of travel time is done at a speed of 30 miles an
Verify that sample mean and the sample variance converge : Write a computer program that generates a sequence of random variables from a normal distribution with mean 5 and standard deviation 2.
What is the final pressure in the device : A .2kg mass of argon gas fills a .05m^3 piston-cylinder volume at a pressure of 400 kPa absolute. The piston induced pressure is changed until the volume expands to twice its original value, while the temperature remains constant.

Reviews

Write a Review

Civil Engineering Questions & Answers

  What is the fluid velocity in the pipe in feet per second

Water enters a pipe at 100 psig and 70 degrees F. The density of water under these conditions is 62.3 lbm/ft^3. The pipe has an inside diameter of 4.5 inches. The mass flow rate of the water is measured to be 7500 lbm/hr.

  Find metric tons of gravel required to fill a excavated area

Calculate the metric tons of gravel required to fill an excavated area 70 meters by 50 meters by 2 meters deep if the gravel has a density of 1890 kg/(m^3).

  Determine the theoretical discharge

A vertical triangular orifice in the wall of a reservoir has a base 0.9m long,0.6m below its vertex and 1.2 m below the water surface. determine the theoretical discharge?

  The magnitude of the unit vector of bxa

For Vectors A=(i + 2j - 3k) and B=(4i - 5j + 6k), determine:

  What is the most significant difference between free jets

What is the most significant difference between “free” jets and flows in confined structures (nozzles, pipes, etc.) in terms of formulation of force terms ÓF(i.e. left hand side) of the momentum equation? Assume all flows are subsonic and neglect the..

  Determine height from ground and time at which may pass

Ball A is thrown vertically upward from the top of a 30-m-high building with an initial velocity of 5 m/s. At the same instant another ball B is thrown upward from the ground with an initial velocity of 20 m/s. Determine the height from the ground..

  Formulate problem as an ip and find optimal solution

The Record-a-Song company has contracted with a rising star to record eight songs. The sizes in MB of the different songs are 8, 3, 5, 5, 9, 6, 7, and 12, respectively. Record-a-Song uses two CDs for recording. Each CD has a capacity of 30 MB.

  What is the heat rejection for the condenser in btu per h

Consider a small simple Rankine Power cycle which produces 600kW power from an electric generator with an efficiency of 95%. The steam leaves the boiler at 1250psia as superheated steam and leaves the turbine at 2 psia with a quality of 90%.

  Explain qualitative difference between the sine and tangent

Determine the percent error n in replacing the sine and the tangent of an angle by the value of the angle in radians for angle values 5 degrees, 10 degrees, and 20 degrees. Explain the qualitative difference between the sine and tangent results.

  Determine what is the final concentration of cfu-l

A hypothetical water treatment train consisting of coagulation/flocculation unit, filtration unit and chlorination system is used to treat surface water characterized by bacterial concentration of 800,000 CFU/L.

  Determine does there appear to be any trend in the data

The US EPA has published the following data for the release to the Florida environment of sulfuric acid (H2SO4 ), the most widely used industrial chemical (in millions of pounds).

  What is the velocity of striking

If the ball strikes the side of the building 2s after being thrown, at what height above the base of the building did the ball strike the building? What is the velocity of striking?

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