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 is 15%of8700 please give the right answer
posledela
15% becomes 0.15
multiply it by 8700
0.15x8700=1305
7 0
2 years ago
Read 2 more answers
Along which axis is the dependent variable traditionally plotted?
Dvinal [7]
The y axis for dependent variables and x axis for independent
7 0
3 years ago
PLEASE HELP ME!! A section of a highway is constructed with a 23% grade. What angle does the highway make with a horizontal line
lesantik [10]

Answer: 77.05

Step-by-step explanation:    1) Draw a right triangle with these measures:

angle with the horizontal: 6 degress

horizontal segment: 5

height: x

2) Definition of tangent : tan(6°) = opposite leg / adjacent leg = x / 5 =>

3) Solve for

x = 5tan(6°) = 77.05

4 0
2 years ago
Find the variation constant and an equation of variation where y varies directly as x and y=16 when x=2
Jlenok [28]

Answer:

variation constant = k = 8

equation of variation : y = 8x

Step-by-step explanation:

Any relationship of variation can be written as y = kx

where k is the variation constant.

_______________________________________

Let the equationof relation between y and x be y =kx here as well

given

y = 16 when x = 2

substituting this value in the equation y = kx

16 = k*2

=> k = 16/2 = 8

Thus,

variation constant = k = 8

equation of variation : y = 8x

5 0
3 years ago
Use the relationship between the sine and cosine functions to fill in each blank .
rjkz [21]

Answer:

sin(12°)

Step-by-step explanation:

Because sine and cosine are cofunctions, we can use the relation sin(90° - θ) = cosθ to show that cos(78°) = sin(90° - 78°) = sin(12°)

8 0
3 years ago
Other questions:
  • What is the area of the figure shown below?
    11·1 answer
  • A toy store worker packed two boxes of identical dolls and plush toys for shipping in boxes that weigh 1oz when empty. One box h
    10·1 answer
  • The coordinate plane shows the floor plan for a swimming pool. What is the area of the pool’s border?"
    6·2 answers
  • What is the surface area of the cylinder? Express the answer in terms of pi
    9·1 answer
  • A study was conducted by a certain firm to determine who curses at their computer. The results indicated that 30​% of people age
    9·1 answer
  • These two images show steps in a proof of the Pythagorean theorem. Which
    5·2 answers
  • Megan was painting on a rectangular canvas, and needed a frame for it. The length of the frame is 15 inches and the width is 10
    8·1 answer
  • What is the value of (4/5 a 1/3) x 5^2 + 5/6 expressed in simplest form
    10·1 answer
  • HELP ME PLEASE RNNN FASTTT
    7·1 answer
  • Jake fills a tank that can hold 200 gallons of water. The tank already has 50 gallons of water in it when Jake starts filling it
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!