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
Pleaseeee helpp which one is it and whyyyy!!!!
Elza [17]

Answer:

answer is A

Step-by-step explanation:

7 0
2 years ago
Carlotta is making blue and orange necklaces in several lengths. For each necklace, her ratio of blue beads to orange beads is 3
agasfer [191]
5x=60 
x=12
2x=24

......
3 0
3 years ago
Read 2 more answers
A multi-layer cake is in the shape of a right cylinder. The height of the cake is 20 centimeters, and its radius is 10 cm. If ea
gizmo_the_mogwai [7]

Answer:

There are total 5 layers.

Step-by-step explanation:

A multi-layer cake is in the shape of a right cylinder.

Height of the cake is = 20 cm

Radius is = 10 cm

Each of the cake layers has a volume of approximately 1,250 cm³.

Means, the volume of 1 cylindrical layer is 1250 cubic cm with radius as 10 cm and we have to find the height.

Volume of the cylinder is given as:

V=\pi r^{2} h

1250=3.14\times(10)^{2}\times h

1250=314 h

h=\frac{1250}{314}

h = 3.98 or approximately height of 1 layer is 4 cm.

As the cake's height is 20 cm so, there are \frac{20}{4}=5 layers in the cake.

Answer: There are 5 layers in the cake.

5 0
3 years ago
How do i solve 3√64 times 3√8
Brums [2.3K]

Answer:

equals 8

Step-by-step explanation:

cube root of 64 = 4 x cube root of 8 = 2


4 x 2 = 8

7 0
3 years ago
Read 2 more answers
Please help!! <br> Much appreciated..
AlexFokin [52]

Answer:

see photo for detailed analysis

Step-by-step explanation:

7 0
2 years ago
Other questions:
  • I need help with this
    12·1 answer
  • How will you know whether a solution is a percent increase or a percent decrease?
    7·1 answer
  • What is the cost of two chocolate chip cookies that cost 30 cents each and three peanut butter cookies that cost 25 cents each?
    6·2 answers
  • What is a good way find the answer to this?
    8·1 answer
  • if I walked 252 steps in total and 182 steps were in the shade, how many steps did I walk in the sun?
    9·2 answers
  • Find the odds of selecting the later “I” from the word brilliant ?
    11·1 answer
  • Express the decimal 0.43 as a fraction in its simplest form.
    15·1 answer
  • The total cost of a framed poster is determined by the cost of the frame, f, the cost of the
    7·1 answer
  • Sort this number out 200000065
    8·2 answers
  • Please show work and thank you
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!