answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
1 year ago
5

A computer program contains one error. In order to find the error, we split the program into 6 blocks and test two of them, sele

cted at random. Let X be the number of errors in these blocks. Compute E(X).
Mathematics
1 answer:
Aleksandr-060686 [28]1 year ago
7 0
There are \dbinom62 ways of selecting two of the six blocks at random. The probability that one of them contains an error is

\dfrac{\dbinom11\dbinom51}{\dbinom62}=\dfrac5{15}=\dfrac13

So X has probability mass function

f_X(x)=\begin{cases}\dfrac13&\text{for }x=1\\\\\dfrac23&\text{for }x=0\end{cases}

These are the only two cases since there is only one error known to exist in the code; any two blocks of code chosen at random must either contain the error or not.

The expected value of finding an error is then

\displaystyle\sum_{x=0}^1xf_X(x)=0\times\dfrac23+1\times\dfrac13=\dfrac13
You might be interested in
An oil tank is being filled at a constant rate the depth of the oil is a function of the number of minutes has been filling, as
satela [25.4K]

We are given time in minutes.

According to given table, we are given times 0 minute, 10 minutes and 15 minutes.

And depths are given 3, 5 and 6.

Times represents x coordinates and depths represents y-coordinates.

First we need to find the depth of the tank in per unit time( in a minute).

In order to find the depth of the tank in per unit time, we need to find th slope between two coordinates.

Let us take first two coordinate made using table (0,3) (10,5)

We know, slope formula

m=\frac{y_2-y_1}{x_2-x_1}

Plugging values in slope formula, we get

m= \frac{5-3}{10-0}=\frac{2}{10}=\frac{1}{5}

We got slope m= 1/5=0.2.

We can say that depth of the tank is increasing by rate 0.2 per minute.

From the given table, we can see that for x=0, y value is 3.

Therefore, y-intercept is 3.

Let us write an equation of the line for given table in slope-intercept form y=mx+b.

Plugging values of m and b in slope-intercept form, we get

y= 0.2x+3.

We need to find the depth after 1/2 hours.

1 hour = 60 minutes,

Therefore, 1/2 hours = 60/2 = 30 minutes.

Plugging value of x=30 in above slope-intercept form of the equation, we get

y= 0.2(30)+3.

y= 3+6 = 9.

y=9

Therefore, the depth of the oil 1/2 hour after filling begins is 9 units.

5 0
2 years ago
Solve the following problems: Given: AB = 21, OB = 10 Find: m∠BAC
qaws [65]

The awnser is approx 50.9266

If you need an explaination, i can make one

6 0
1 year ago
Barry also looks into the cost of repaying an easy access loan for $1000. The up-front cost of the loan is $3 for every $20 borr
natta225 [31]

Answer:

Barry has to pay back $1150

Step-by-step explanation:

We can set up an equation to help solve this problem

x is the amount he has to pay back

x=1000+3(1000/20)

1000/20 lets us know how many times he borrowed 20 dollars

x=1000+3(50)

x=1000+150

x=1150

Barry has to pay back $1150

3 0
1 year ago
Mario walked at a rate of 2/3 miles every 10 minutes what is his unit rate every mile per hour
Dmitry_Shevchenko [17]

Mario's unit rate is given by 900 miles/hour.

Explanation:

We have been given that Mario walked at a rate of 2/3 miles every 10 minutes.

We have the relation between speed, time and distance, which is given by

\text{Speed}= \frac{\text{Distance}}{\text{Time}}

We have,

Distance = \frac{2}{3} \text{ miles}

Time = 10 minutes

On substituting these values in the above formula, we get

\text{Speed} = \frac{2/3}{10}\\\\ \text{Speed} =\frac{2}{10\cdot 3}\\\\ \text{Speed} =[tex]\frac{1}{15} \text{ miles/min}[/tex]

We have to find the unit rate in mile per hour, so we need to multiply it by 60

Thus, unit rate is given by

\frac{1}{15} \times 60\\ = 4 \text{ miles/hour}

5 0
2 years ago
Help. me. pls.
jenyasd209 [6]

it is D because my teacher and I did a  sample test and these were one of the questions plus i've seen people with the same answer for this question. take my word for it

4 0
2 years ago
Other questions:
  • The distance between two locations, A and B, is calculated using a third location C at a distance of 15 miles from location B. I
    11·1 answer
  • Which is a correct statement about the description “six less than the quotient of a number cubed and nine, increased by twelve”
    10·2 answers
  • Julia examines the two triangles below and determines that .
    11·2 answers
  • What value of x makes the equation -5 - (-7-4x) = -2 (3x-4) true?
    8·1 answer
  • Lincoln and Hunter work at a dry cleaners ironing shirts. Lincoln can iron 30 shirts per hour, and Hunter can iron 20 shirts per
    13·1 answer
  • An open rectangular box with a square bottom must have a surface area of a square inches. Write a formula for the volume of the
    13·1 answer
  • A birthday celebration meal is $49.20 including tax, but not the tip. Find the total cost if a 15% tip is added to the cost of t
    5·2 answers
  • Victor sold cupcakes and cookies yesterday. Each cupcake sold for $2.25 and each cookie sold for $0.50. At the end of the
    9·1 answer
  • Write 3^n / 9^n-1 as a power of 3
    8·1 answer
  • A middle school took all of its 6th grade students on a field trip to see a ballet at a theater that has 1300 seats. The student
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!