1answer.
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]
3 years 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]3 years 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
Valerie works in a law office. Her annual salary is 24,000. Valerie is paid monthly and pays income tax of 15% on her earnings o
Darina [25.2K]

Answer: $235

Step-by-step explanation: First you need to calculate how much her monthly salary is. Her annual salary is $24,000, so you need to divide by 12 to determine how much she is paid each month. $24,000/12 = $2,000 per month.

She pays income tax on her earnings over $944. The amount of her earnings over that threshold is $2,000 - 944 = $1,056.

To determine the total tax it is .15 x 1056 + 76.60=

$158.40 + 76.60=

$235 = Total Income Taxes

6 0
3 years ago
The slope of the line passing through(-2,5) and (4,-1) is:
Lady bird [3.3K]

Answer:

The slope of the line passing through (-2, 5) and (4,-1) is -1.

Step-by-step explanation:

To solve this equation, we can use the formula Δy÷Δx=s.

(Change in y divided by change in x is equal to slope)

First, plot the two points on a graph, then draw a line connecting the two points.

Then, draw a line from (-2,5) to (-2,-1). Since the line goes down by 6 units from (-2,5), this means that the change in y is -6.

Draw a line from (-2,5) to (4,5). Since the line goes right by 6 units from (-2,5), this means that the change in x is +6.

Δy÷Δx=s

-6÷6=s

-6÷6=-1

-1=s

Therefore, the slope of the line passing through (-2, 5) and (4,-1) is -1.

More Info On Finding Slopes:

https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:linear-equations-graphs/x2f8bb11595b61c86:slope/v/introduction-to-slope

4 0
3 years ago
What is −5 1/2 ÷ (−4 1/2) ?/
RUDIKE [14]

Answer:

51÷41

Step-by-step explanation:

changing division form into multiplication by making its reciprocal

3 0
2 years ago
Helppppp please my is on the line
s344n2d4d5 [400]

Answer:

i wanna say .05

Step-by-step explanation:

i did the two numbers divided then just rounded the decimal

3 0
3 years ago
Athena uses her credit card to buy some clothes for $738.14. She can pay off up to $265 per month. The card has an annual rate o
s344n2d4d5 [400]
You can use the following online calculator to answer your question.  http://www.arachnoid.com/lutusp/finance.html  you would make the folowing entries:  Present Value = 738.14 Future Value = 0 Number of Payments is left blank because you want to solve for that. Payment Amount = -265.00 Interest Rate per period = 17.9% per year divided by 12 =  1.491666667% per month. Payment At is at End.  click on the NP button and it will tell you the number of months required for the loan to be fully paid off.  the calculator will show you that it will take 2.87 months for you to fully pay off the loan of $738.14 when you are paying it off at $265.00 at the end of each momth and the interest rate if  1.491666667% per month.  now that you know how long it takes for you to pay it off, you can determine what the interest amount is that you paid.  multiply your payment of 265 per month by 2.87 months to get a total payment of $ 760.55 your loan was for $738.14.  the difference is the amount of interest you paid.  that will be $760.55 - $738.14 =<span> <span>22.41</span></span>$\  you paid $22.41 in interest. 

3 0
3 years ago
Other questions:
  • HELP ASAP ASAP
    11·2 answers
  • The velocity of an object must include both a ______ and a ______
    12·1 answer
  • The mean temperature for the first 4 days in January was 7°C. The mean temperature for the first 5 days in January was 9°C. What
    10·2 answers
  • Alexis washes 10 1/2 windows in 3/4 hour.at least rate how many windows can she wash in one hour
    14·1 answer
  • Factor the common factor out of each expression 64p - 24
    14·1 answer
  • Need help please asap​
    5·1 answer
  • 3.what is the answer to this problem?
    5·1 answer
  • Given that <br><img src="https://tex.z-dn.net/?f=32%20%5Csqrt%7B32%7D%20%20%3D%20%7B2%7D%5E%7Bx%7D%20" id="TexFormula1" title="3
    11·1 answer
  • How to solve this pls? 20 + 46 - 11ab - 6b
    6·2 answers
  • Some one plz help!!! due in 10 min
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!