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
Marina86 [1]
3 years ago
10

g Programs submitted by programs in a computer science course are examined for syntax errors and logic errors. Suppose 36% of al

l programs have syntax errors, 47% have logic errors, and 56% have at least one of those two error types. (a) What is the probability a program contains both error types? (b) What is the probability a program contains neither error type? (c) What is the probability a program has logic errors, but not syntax errors? (d) What is the probability a program either has no syntax errors or has no logic errors?

Mathematics
2 answers:
Llana [10]3 years ago
6 0

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

zepelin [54]3 years ago
5 0

Answer:

Kindly check explanation

Step-by-step explanation:

Given the following :

Programs with syntax errors ; n(S) = 36%

Programs with logic errors; n(L) = 47%

Programs with atleast one of the two errors = 56%

P(S) = 0.36 ; p(L) = 0.47

P(SnL) = x

P(S) only + p(L) only + p(SnL) = 0.56

P(S) only = 0.36 - x

P(L) only = 0.47 - x

P(SnL) = 0.36 - x + 0.47 - x + x = 0.56

0.83 - x = 0.56

x = 0.27

B) probability that program contains neither error :

1 - p(program contains atleast one of the two errors)

1 - 0.56 = 0.44

C) probability of logic error but no syntax error :

P(L) - p(SnL)

= 0.47 - 0.27

= 0.20

You might be interested in
Can someone help me out????
Marta_Voda [28]

Answer:

NO

Step-by-step explanation:

bc

u

ha ve

aut

tis

umm

and

special

kid

home

work

6 0
3 years ago
At this point this one decides my grade
Tresset [83]

Answer:

A = 16π cm²

Step-by-step explanation:

We require to find the radius r

Given circumference C = 8π , then

2πr = 8π ( divide both sides by 2π )

r = 4 , then

A = πr² = π × 4² = 16π cm²

6 0
3 years ago
Read 2 more answers
A store charges 7% sales tax. Which expression can be used to find the total cost of an item with a price of p?
sergiy2304 [10]

Answer:

0.07.

Step-by-step explanation:

Below. Lets say 1 is 100 dollars sale tax. If 1 is 100 7 would be 7.00

4 0
3 years ago
Evan is trying to save $60 to buy new parts for his bike. He has saved 45% of what he needs so far.
Ber [7]

Answer:

27$

Step-by-step explanation:


8 0
2 years ago
While traveling to Europe, Phelan exchanged 250 US dollars for euros. He spent 150 euros on his trip. After returning to the Uni
Anettt [7]
Since the exchange rate of euro to USD right now is 1:1.11, therefore he spent 150x1.11=166.5 USD. Therefore, he has 250-166.5=83.5 USD left(assuming the exchange rate is the same, 1.17).
5 0
3 years ago
Read 2 more answers
Other questions:
  • 5/5/5/5/5/5/5/55/5/5//5/5/5/5//5/5/5/5/5/5/5/5
    11·2 answers
  • Tell me the answer for 11 plz thanks if you did
    11·2 answers
  • the marked price of a mobile is 40% above the cost price. when it is sold allowing 30% discount on the marked price, there is a
    6·1 answer
  • I have no idea how to do this stuff.
    9·1 answer
  • Simplify (4x + 12) - (6x - 18)
    6·2 answers
  • What is the value of the expression 8 - 5(4 + 4)?
    13·1 answer
  • 0.817 times 1.5 must show answer
    7·1 answer
  • A bookstore manager marks down the price of older hardcover books, which originally sell for b dollars, by 52%.
    5·1 answer
  • TELL ME THIS ANSWER ​
    11·2 answers
  • What is the image point of (–7, 1) after a translation left 4 units and down 5 units?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!