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
17:3 and 15:60 Equivalent ratios
inessss [21]

Answer:

Step-by-step explanation:

17:3 is already in lowest terms. 17:3 = 34:6, 51:9, etc.

15:60 = 1:4

5 0
3 years ago
What is 1+1? lol i know it’s 2
bogdanovich [222]
Lol I'll just comment to get 5 points
7 0
3 years ago
three apples and four bananas cost $4.85 . three apples and ten bananas cost $8.75.Find the cost of an apple.
konstantin123 [22]
8.75-4.85= 3.90= cost of 6 bananas
3.9/6=0.65= cost of one banana
.65*4=2.60= cost of 4 bananas
4.85-2.60= 2.25= cost of 3 apples
2.25/3=.75= cost of an apple
5 0
3 years ago
Read 2 more answers
Please help I’m in a hurry and need the answer!!
UkoKoshka [18]

Answer:

56 cm Squared

Step-by-step explanation:

area of rectangle =10×5=50

area of smaller rectangle =3×2=6

area of the shape is 56

4 0
3 years ago
The graph show rate that tom travels on hes bicycle with the line traveling through the point (5, 45)
Lina20 [59]

Answer: whats the question?

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • 1) A sample of 17 patients in a hospital had these hemoglobin readings (grams):
    10·1 answer
  • A teacher writes the function f(x)=3x^2-18x+27 on the board. How many times does the graph of the teacher's function intersect t
    8·1 answer
  • Which of the following are solutions to the graph
    6·1 answer
  • Can someone please help me with these 2 problems. With work please & thank u
    10·1 answer
  • Lucy is a dress maker. She sew 4/7 of a dress in 3/4 hour. lucy sews at a constant rate At this rate, how many dresses does lucy
    7·1 answer
  • 2 to the Third power -(30÷5) +9
    11·1 answer
  • Answer the questions below. Be sure to mark all answers that apply.
    8·1 answer
  • SOMEONE CAN HELP ME , PLEASE I NEED THIS NOW
    14·2 answers
  • 9.
    9·1 answer
  • Acellus
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!