Answer:
The answer is below
Step-by-step explanation:
Let S denote syntax errors and L denote logic errors.
Given that P(S) = 36% = 0.36, P(L) = 47% = 0.47, P(S ∪ L) = 56% = 0.56
a) The probability a program contains both error types = P(S ∩ L)
The probability that the programs contains only syntax error = P(S ∩ L') = P(S ∪ L) - P(L) = 56% - 47% = 9%
The probability that the programs contains only logic error = P(S' ∩ L) = P(S ∪ L) - P(S) = 56% - 36% = 20%
P(S ∩ L) = P(S ∪ L) - [P(S ∩ L') + P(S' ∩ L)] =56% - (9% + 20%) = 56% - 29% = 27%
b) Probability a program contains neither error type= P(S ∪ L)' = 1 - P(S ∪ L) = 1 - 0.56 = 0.44
c) The probability a program has logic errors, but not syntax errors = P(S' ∩ L) = P(S ∪ L) - P(S) = 56% - 36% = 20%
d) The probability a program either has no syntax errors or has no logic errors = P(S ∪ L)' = 1 - P(S ∪ L) = 1 - 0.56 = 0.44
Answer:
y=0.5x+8
Step-by-step explanation:
Use the formula for the equation of a line y=mx+c where m is the slope and c is a number.
To find the slope, take two points (x₁,y₁) (x₂,y₂) and put them into the slope equation m=(y₂-y₁)/(x₂-x₁):
We can take two points from the graph: (2,9) (4,10)
m=(y₂-y₁)/(x₂-x₁)
m=(10-9)/(4-2)
m=1/2 or 0.5
Now sub this value in for m and our formula looks like this:
y=0.5x+c
To find the value of c, sub in one of the points, eg. (4,10)
y=0.5x+c
10=0.5(4)+c
10=2+c
c=8
So now that we now m and c, our equation is complete :D
y=0.5x+8
1000 candy bars ... $350
1 candy bar ... $x = ?
If you would like to know what is the unit cost per candy bar, you can calculate this using the following steps:
1000 * x = 350 * 1
1000 * x = 350 /1000
x = 350 / 1000
x = $0.35
Result: She can buy 1 candy bar for $0.35, so the correct result would be B) $.35.