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
What percent of 156 is 78
alina1380 [7]
50% is your answer hope i helped you
4 0
2 years ago
I need the answer to all of these with work shown. Thanks!!
professor190 [17]

This is for question 3a.

6 0
3 years ago
HELP! Please answer the question above tia
bonufazy [111]
To get the Y values use the equation Y = MX and substitute the X and M values So for the first one you would get Y = -3 x -1 leaving Y as 3 then for the second you do  Y = -3 x 0 giving you Y = 0 the third would be Y = -3 x 1 so Y would be -3 and you give the last one a shot >.O best of luck!

3 0
3 years ago
Paige has 1 ½ feet of rope for a project. She only needs 2/3 of it. How much rope does she need?
Grace [21]

Answer:

1 foot

Step-by-step explanation:

1 1/2 = 3/2

2/3*3/2 = 1

4 0
3 years ago
Read 2 more answers
7 cups of coffee and 4 pieces of toast cost $20 . 5 cups of coffee and 3 pieces of toast cost $14.50 . find the cost of each ite
Angelina_Jolie [31]

Answer:

Step-by-step explanation:

Bánh mì 1.5 đô

Cà phê 2 đô

5 0
2 years ago
Other questions:
  • The water from one outlet, flowing at a constant rate, can fill a swimming pool in 9 hours. The water from a second outlet, flow
    15·1 answer
  • The area of one rectangle is twice the area of another. What is the ratio of their perimeters
    12·1 answer
  • A trapezoid has bases that measure 9 cm and 5 cm. The height of the figure is 4 cm . What is the area of the trapezoid ?
    10·2 answers
  • What is the value of x in the equation x – y = 30, when y = 15?
    15·2 answers
  • ANSWER IT PLZ! Evaluate the expression 4² + 6 · 5² - 3³ ÷ 3² = ?
    5·2 answers
  • Juan wants to paint somthing in the shape of a right rectangle prism. The prism is 17 in long 11 in wide and 9 in high. He had e
    6·1 answer
  • What is the product of 1.508 x 0.7
    15·2 answers
  • What is 830% written as a decimal
    9·2 answers
  • Find the area of the trapezoid
    15·1 answer
  • Help please, need the answer fast!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!