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
Rush! please please help
kodGreya [7K]

Answer:

it's the one on the bottom right of the screen

5 0
3 years ago
A landscaper charges a fee of $150 to replace plants in a flower bed plus $0.75 per plant, p. Which of
yuradex [85]

Answer:

Step-by-step explanation:

i think it’s c t=150p+0.75p

5 0
3 years ago
N is an odd number.
Alex777 [14]

Answer:

A and E

Step-by-step explanation:

substitute and odd number into every equation :)

6 0
2 years ago
PLEASE HELP ASAP 25 PTS + BRAINLIEST TO RIGHT/BEST ANSWER
mash [69]

Answer:

(-6,9,-3)

Step-by-step explanation:

-3x -y +z=6

-3x-y+3z =0

x-3z =3

Multiply the second equation by -1

-1 *(-3x-y+3z) =0*-1

3x +y -3z =0

Add this to the first equation

-3x -y +z=6

3x +y -3z =0

----------------------

0 + 0 + -2z = 6

Divide by -2

-2z/-2 = 6/-2

z = 6/-2

z=-3


Take the third equation to find x

x-3z=3

x-3(-3) = 3

x+9=3

Subtract 9 from each side

x+9-9 =3-9

x=-6

Now we need to find y

3x +y -3z =0

3(-6) +y -3(-3) =0

-18 +y +9=0

-9+y =0

Add 9 to each side

-9+9+y = 0+9

y=9

(-6,9,-3)

3 0
3 years ago
Read 2 more answers
Jacob went camping with his family. At 7:15 A.M., Jacob set out to go fishing. It took 1 hour and 45 minutes to hike to the lake
GREYUIT [131]

Answer:

  1. 7:15 A.M.
  2. 1 hour and 45 min = 105 min
  3. 3 hour 45 min= 225 min
  4. 1 hour and 15 min = 105 min
  5. 105(2)+ 225= 435 min= 7 hours and 25 min.
  6. Add that to the original total you get 14:40 P.M
7 0
3 years ago
Other questions:
  • Find f(3) + g(2) if f(x)=x+2 and g(x)=5x-1
    7·1 answer
  • Use a two variable write an equation for the total number of boys and girls is 428
    8·1 answer
  • A cubic centimeter is the space taken by a square whose sides are 1 centimeters long true or false
    8·1 answer
  • Which ratio is equal to the number π
    7·1 answer
  • Using the least common denominator rename 3/5 and 11/20?
    7·2 answers
  • Please help SHOW ALL YOUR WORK
    14·2 answers
  • I'm bi
    15·1 answer
  • 1. In the first week, he spent $16 on lunches. How much was in his account then?​
    15·2 answers
  • In a Parallelogram CARS , <C = 5x-20 and <A = 3x+20. Find the value of x ?​
    14·1 answer
  • What is the volume whose 16 whole 2/3 %is 0.75 litre
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!