What percentage of time does result contain three odd number

Assignment Help Electrical Engineering
Reference no: EM13252429

Write a program to simulate a lottery drawing that uses balls numberedfrom 1 through 10. Assume that three balls are drawn at random (Userandom numbers or allow user to input the number of lottery drawings to simulate the random number). Your will simulate 10lottery drawings. Store those data to a 3 10 array. The rowsindicate the three balls in a lottery drawing. The columns indicatethe 10 times drawings. In this exercise, You will need to calculate:
1) What percentage of the time does the result contain three odd numbers inthe simulation? Write a function to finish this task.

2) Printout the original input (10 times drawings) nicely on the screen.Then print out the percentage of time that the result contains three even numbers.

In this exercise, no global variablesare allowed. NO CREDIT if you did not write the required function to solve the problem.

Reference no: EM13252429

Questions Cloud

What is an example of ambulatory health care : Ambulatory health care continues to grow in our U.S. health care system. In the area of heart disease, what is an example of ambulatory health care? Can you think of other examples of ambulatory health care?
Explain the concentration of sucrose in the final solution : 22.2 mL of 2.50 M stock solution of sucrose is diluted to 50.0 mL. A 11.9 mL sample of the resulting solution is then diluted to 45.0 mL. A 20.0 mL sample of this solution is then diluted to 75.0 mL. What is the concentration of sucrose in the fin..
Write a program that reads a file containing only integer : Write a program that reads a file containing only integer, but some of the integers have embedded commas, as in 145,020. The program should copy the information to a new file, removing any commas from the information.
Evaluate the business-level strategy of victory motorcycles : evaluate the business-level strategy of Victory Motorcycles to determine whether you believe the strategy is appropriate to offset forces in the industry.
What percentage of time does result contain three odd number : Your will simulate 10lottery drawings. Store those data to a 3 10 array. The rowsindicate the three balls in a lottery drawing. The columns indicatethe 10 times drawings.
Skeletal structure for trans-1-bromo-2-isopropylcyclopentane : Draw the skeletal structure for trans-1-bromo-2-isopropylcyclopentane. (Hint: Make sure the tapered end, i.e. the thin end, of the wedge bond is attached to the parent.)
Should cannabis be legalised in australia : Should cannabis be legalised in Australia? Your response should provide a considered discussion of the advantages and disadvantages of both legalisation and criminalisation which shows evidence of wide and varied reading.
Explain the spatial relationship between the hydrogen : The spatial relationship between the hydrogen on C-1 and the hydrogen on C-2 in the most stable chair conformation is: gauche, eclipsed with a 0 degree dihedral angle, eclipsed with a 120 degree dihedral angle, anti
Households make four kinds of economic decisions : For each of the three assignments in this course, prepare one word processing file for text responses, and one spreadsheet file for financial data (e.g., tables and statements). As you answer the assignment questions at the end of each lesson, add yo..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  What is the average power dissipation during the time

It is given that the energy consumed by a computer system is (100 Joules/sec^2)*t^2 Joules during the first second after being activated at t=0. What is the average power dissipation during this time

  Find impedance of scope probe and oscilloscope combination

When the scope probe is properly calibrated, it can be modeled as a 9[M Ohm] resistor in parallel with a capacitor having a capacitance l/9th that of the oscilloscope input capacitance.

  How many times did last flip-flop in chain change states

A three-bit Johnson counter is clocked with pulses at a 120 MHz rate. What will be the pulse frequency of the output of the last flip-flop in the chain. Ten pulses are applied to a four-bit asynchronous counter. If the counter state was 0000 befor..

  Write software to spin the motor at 1 rps

Design an interface for a 12 V, 500 mA bipolar stepper motor. There are 200 steps per revolution. Write software to spin the motor at 1 rps.

  Discuss the health risks assumed by this worker

A 35-year old female worker receives an x-ray exposure of 5.2 rad (whole-body) while carrying out emergency procedures in a nuclear accident. Discuss the health risks assumed by this worker as a result of the radiation exposure.

  Determine the value of the unknown resistance

A series-connected circuit has a 240-V voltage source, a 10- resistance, a 5- resistance, and an unknown resistance Rx. The voltage across the 5-? resistance is 30 V. Determine the value of the unknown resistance.

  What is the maximum temperature the device

A GaAs device is doped with a donor concentration of 3e^15/cm^3 . For the device to operate properly, the intrinsic carrier concentration must remain less than 5% of the total electron concentration

  Calculate the approximate value of the synchronous reactance

A 150MW alternator generates an open-circut line-t0-line voltage of 12kV at nomial DC excitiation. When the terminals are placed in short-circuit the resulting current per phase is 8000A.

  What is the frequency of i in radians per second

A sinusoidal current is zero at t = - 625 s and increasing at a rate of 8000 A/s. The maximum amplitude of the current is 20 A. a) What is the frequency of i in radians per second

  What is the final velocity of the other puck

Consider the collision between two hockey pucks in the figure below. They do not stick together. Their speeds before the collision are v1i = 26 m/s and v2i = 11 m/s. It is found that after the collision one of the pucks is moving along x with a sp..

  Plot the magnitude response

Plot the magnitude response (in dB) and the impulse response of the designed filter using MatLab.

  Calculate the armature voltage va at the instant

At some instant, it goes into regenerative braking. Calculate the armature voltage va at that instant, if the current ia is not to exceed 10A in magnitude. Assume that the inertia is large and thus the speed changes very slowly.

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