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
which of the following describes how to translate the graph y = |x| to obtain the graph of y = |x-1| -1​
svetoff [14.1K]

Answer:

you got to put ylxl

Step-by-step explanation:

8 0
3 years ago
Read 2 more answers
A triangular prism has a height of 9 meters and a triangular base with the following dimensions
nadya68 [22]

Answer:

b 432m

Step-by-step explanation:

A triangular prism has a height of 9 meters and a triangular base with the following dimensions

What is the volume of the prism?

Answers: 420m, 432m, 288m 324m

7 0
2 years ago
Read 2 more answers
What is the volume of a crate measuring 1 m by 2 m by 1.5 m?
gregori [183]

Answer:

V = l x w x h

V = 2m x 1.5m x  1m

V = 3 cubic meter

7 0
3 years ago
Salid bought 35 feet of window trim at a hardware store the trim cost 1.75 pet foot including sales tax if salid paid 100.00 bil
skad [1K]

Answer: Salid should get $38.75 of change.

Step-by-step explanation:

Hi, to answer this question we have to analyze the information given:

  • <em>Quantity of window trim bought: 35 feet </em>
  • <em>Cost per feet: $1.75 </em>
  • <em>Amount paid: $100 </em>

First, we have to calculate the total cost, by multiplying the Quantity of window trim bought (35) by the price per feet (1.75)

35 x 1.75 = $61.75

Finally, to calculate the change that Salid should get, we have to subtract the total cost (61.75) to the amount paid (100)

100-61.75=$38.75

6 0
2 years ago
A fair coin is tossed six times. What is the probability that it will be heads every time?
yawa3891 [41]

Answer:

A: 3

Step-by-step explanation:

Hopefully this helps!

6 0
2 years ago
Other questions:
  • The volume of a box V is given by the formula V=lwh, where l is the length, w is the width and h is the height. Solve the formul
    12·2 answers
  • Need help with 12&amp;13 due in less than two hours help plssss
    13·1 answer
  • Which two sets of angles are corresponding angles ?
    12·1 answer
  • Select the two figures that are similar to the 5 by 5 figure that is shown.
    13·2 answers
  • There are 4 lunch choices in a school cafeteria: Salad, Pizza, Spaghetti, and Sub Sandwiches. The percentage of students that ch
    14·2 answers
  • What is the sum of the angle measures in a 22-gon?<br><br> 360°<br> 2,200°<br> 3,600°<br> 3,960°
    11·1 answer
  • Expressions are equivalent to 4 ( 3 j + ( − 4 ) ) − 9
    12·2 answers
  • Which equations can be used to solve for acceleration? Check all that apply.
    5·2 answers
  • PLEASE HELP<br>find the perimeter of the figure ​
    8·1 answer
  • Please help fasttttttttt
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!