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
You can show your work if u want to<br> Find 2 numbers if Their sum is −7 and their difference is 14
Pepsi [2]

The larger number is (-7+14)/2 = 3.5.

The smaller number is (-7-14)/2 = -10.5.

_____

The two equations a+b=-7, a-b=14 can be solved to get these results. It is genrally convenient to solve them by adding one to the other, or subtracting one from the other.

7 0
3 years ago
What is 1163853739x948096388
Free_Kalibri [48]
Standard calculator will tell you that this is <span>1.1034455e+18 If that makes sense</span>
5 0
3 years ago
Read 2 more answers
How many hours would it take to get from Miami FL to New Hampshire?
bonufazy [111]
It would most likely take 3-4 hours, maybe even 5.
8 0
3 years ago
To win a trivia game, Nathan must score at least 105 points. Each correct answer is worth \large 3\frac{1}{3} points, and each i
myrzilka [38]

Answer:

Nathan earned 100 points. he lost the trivia game by 5 points.

Step-by-step explanation

3\frac{1}{3} * 33 = 110 points earned

\frac{1}{2} * 20 = 10 points lost

110-10 = 100

Nathan earned 100 points. he lost the trivia game by 5 points.

3 0
3 years ago
Name the slope and one point or<br> y-1=2(x+3)<br> Q<br> (__)<br> =_<br> m=
Artemon [7]
Y=2x+6+1
y=2x+7
i.e m= +2
5 0
1 year ago
Read 2 more answers
Other questions:
  • At a football game, 65% of people attending were supporting the home team, while 35% were supporting the visiting team. If 1300
    12·1 answer
  • Indeed help with this plz
    12·2 answers
  • Express in decimal notation. 1.56 × 10^−4
    13·2 answers
  • Richard R skemp states "mathematics is not a collection of facts which can be demonstrated and verified in the physical world ,
    15·1 answer
  • If the area of the square is<br> 36 mm? what is the<br> circumference of the circle?
    9·1 answer
  • How many hundred thousands equal 80,000 tens
    12·2 answers
  • Solve the system of equations below algebraically 2x-3y=8 4x+2y= 10
    11·1 answer
  • Yooo help me i need help on ixls no cap
    15·1 answer
  • Find the radius and the center of the circle with the given equation x^2+y^2−8x−2y=48.
    8·1 answer
  • URGENT PLEASE DO!! will give brainliest to first person to answer
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!