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
Hello, everyone! I am in high school and I need help with my geometry homework! I will also mark you as the brainliest answer if
ale4655 [162]

A) #3 y = x+3, if you subtract x from y there is a difference of 3 in all of them.

B) #5 y = -x^2, the y value is the negative value of x raised to the 2nd power

C)#6 y = x^2+3, if you raise the value of x to the 2nd power and then add 3 you get the y value

D)#2 y=3x-1, if you multiply the value of x by 3 then subtract 1 you get the y value




7 0
4 years ago
Four friends made a bar graph to show how many baseball cards they collected over the summer how many they collected in all
nadya68 [22]

Answer:

add the number on the bar graph to get the answer so add all of the charts numbers together

Step-by-step explanation:

6 0
3 years ago
What is a true statement about the Diagram?
Inessa05 [86]

Answer:

C

Step-by-step explanation:

m1 and m2 are adjacent angles on a straight line, hence have the sum 180.

5 0
3 years ago
OMG FREE BRAINLIESTOMGGGG!!!AHHH
Kitty [74]

Answer:

thank yoy so much for these free points, and I hope you have the best day because you deserve to have a really good day

Step-by-step explanation:

Please mark me as brainliest!

6 0
3 years ago
Read 2 more answers
A2
lbvjy [14]

Answer: B

Step-by-step explanation:

Scale factor = (image)/(preimage). Here, the preimage is triangle ABC and the image is triangle FED.

  • AC=6
  • DF=3

So, the scale factor is 3/6 = 1/2

8 0
2 years ago
Other questions:
  • at maximum speed, an airplane travels 1680 miles against the wind in 5 hours. Flying with the wind, the plane can travel the sam
    11·2 answers
  • If the perimeter of the triangle is 49 m, find the third side of the triangle.
    10·1 answer
  • Ten times the sum of half a number and 6 is 8. write an equation and answer it
    12·1 answer
  • How do I solve this
    12·1 answer
  • X-3<-12 Choose the correct graph for the inequality?
    15·1 answer
  • It takes Doug 3 days to reroof a house. If Doug's son helps, it can be done in 2 days. How long would it take Doug's son to do t
    12·1 answer
  • 3(x + 1) - 2x = -6 what is X i need halp
    5·2 answers
  • PLEASE HELP IT WOULD MEAN A LOT THX! :(
    10·2 answers
  • Translate 13 more than n to an algebraic expression
    11·2 answers
  • What is the rule for the function shown in the table?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!