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
MATH REAL ANSWER PLS DONT ANSWER THEN DELETE (BENNY whatever ur 500 accounts are i’m filing a police report if you answer this s
Dafna1 [17]

Answer:

Step-by-step explanation:

0 = (x + 1)(x + 1)

Therefore

x + 1 = 0

x = -1 (twice)

(-1, 0), (-1, 0)

6 0
2 years ago
How do u convert decimals to percents and percents to decimals????????
Oduvanchick [21]

Answer:

To convert a decimal to percent, just multiply it by 100, or move the decimal place 2 times

Ex: 0.29 x 100 = 29

The answer would be 29%

To convert a percent to a decimal, do the opposite

Ex: 29%/100 = 0.29

4 0
3 years ago
Read 2 more answers
HELP ASAP PLEASE
dimaraw [331]

Answer:

Two different cars each depreciate to 60% of their respective original values. The first car depreciates at an annual rate

10%. The second car depreciates at an annual rate of 15%. What is the approximate difference in the ages of the two

cars?

Step-by-step explanation:

the answer is in the question

7 0
3 years ago
The tree in Debra's backyard is 6 meters high. How high is it in centimeters?
Maksim231197 [3]

Answer:

600 centimeters. 1 meter is equal to 100 centimeters

3 0
3 years ago
NEED ANSWER ASAP!! TYYY SO MUCH IN ADVANCE
Kipish [7]

Answer:

24.84

Step-by-step explanation:

use Pythagoras theorem

h=√p²+b² = √(19)²+(16)² = √617 =24.84

4 0
3 years ago
Other questions:
  • There are 2 blocks for every 3 videos. How many videos are there is there are 6 books
    10·2 answers
  • A club is selling hats and jackets as a fundraiser. They have to stay within a budget of $900. They can order up to 200 items. E
    7·1 answer
  • What is the least common multiple of 96 144 and 224
    15·2 answers
  • X/9 + 7 ≥ 10 <br><br> A. x ≤ 83<br><br> B. x ≥ 27<br><br> C. x ≤ 27<br><br> D. x ≥ 83
    13·1 answer
  • Show the outcomes for picking a vowel from the word APPLE and consonant from the word BOOK
    15·1 answer
  • In a triangle ABC, tan (a) = 20/21. Find sin (a) and cos (a)
    11·1 answer
  • Which is steeper: a road with a 12% grade or a road with a pitch of 1 in 8?
    6·1 answer
  • Answer this please help needed
    5·1 answer
  • The population P of a colony of 3600 bacteria at time t minutes can be modeled by the function P(x) = 3600(2)^t/73. How long doe
    12·2 answers
  • use figure 10.5 on page 391 for the percent of coverage to determine the a) amount of coverage for the garage, c)amount for loss
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!