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
A factory makes candles. Each candle is in the shape of a triangular prism, as shown below. If the factory made 35 such candles,
Llana [10]
Number of candles =(total volumes used by the company)/(volume of one candle)
volume of one candle =5cm*2cm*12cm=120cm^3
hence number of candles =5040/120
, ,=42candles
5 0
3 years ago
Aaron, Blaine, and Cruz are solving the equation
stiv31 [10]

Answer:

All three chose a valid first step toward solving the equation.

All approaches are algebraically correct

7 0
3 years ago
Read 2 more answers
What is the equation of the line of best fit for the following data? Round the
podryga [215]

Answer:

The answer is A.

Step-by-step explanation:

6 0
3 years ago
Silcon-28 has a mass-per-nucleon of 1.003 amu. Iron-56 has a mass-per-nucleon of 0.99723 amu. Cadmium-112 has a mass-per-nucleon
Ber [7]

Answer:

no

Step-by-step explanation:

4 0
3 years ago
How do you solve the equation <br> <img src="https://tex.z-dn.net/?f=3%28x%2B8%29%3D17" id="TexFormula1" title="3(x+8)=17" alt="
trapecia [35]
3(x + 8) = 17....distribute the 3 thru the parenthesis
3x + 24 = 17...subtract 24 from both sides
3x = 17 - 24
3x = -7...divide both sides by 3
x = -7/3 or -2 1/3 <===
3 0
3 years ago
Other questions:
  • Choose the correct answer. Your bill from Acme is marked "3/12, net 30." The amount of the bill is $98.65. If you pay the bill w
    5·2 answers
  • Explain how to write a function rule from the table below. Then write a function rule.
    13·2 answers
  • Find the area of parallelogram below 8 12
    10·2 answers
  • 483.6 is what percent of 180
    5·1 answer
  • The goals against average (A) for a professional hockey goalie is determined using the formula A=60(g/2). In the formula, g repr
    6·2 answers
  • Help please? 15 points here
    14·1 answer
  • Complete the equation: x2 + 10x + ___ = 2
    9·1 answer
  • The diagram shows two congruent equilateral triangles whose overlap is a hexagon.
    6·2 answers
  • Please help I’m struggling
    9·1 answer
  • A figure was translated 4 units down and 3 to the left then reflected over the y-axis. The figures are
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!