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
Among the four northwestern states, Washington has 51% of the total population, Oregon has 30%, Idaho has 11%, and Montana has 8
morpeh [17]

Answer:

Step-by-step explanation:

H₀ : The distribution of the sample agrees with the population distribution.

H₁ : the distribution of the does not agree with the population distribution.

Using the  Chi-square test statistics

we will compute the expected frequencies

Now expected frequency for Washington will be

Fe = Npi = 1000×51% = 5100

expected frequency for Oregon

Fe = Npi = 1000×30% = 300

expected frequency for Idaho

Fe = Npi = 1000×11% = 110

expected frequency for  Montana

Fe = Npi = 1000×8% = 80

The Chi=square test statistics is;

x² = ∑ [ (Fo - Fe)² / Fe )

now we substitute

Given our Fo ( 450 in Washington, 340 in Oregon, 150 in Idaho, and 60 in Montana) from the question

x² =  (450-510)²/510 + (340-300)²/300 + (150-110)²/110 + (60-80)²/80

x²= 31.9376

so the chi-square test statistics is 31.9376

Now the chi-square critical value

first we compute for degree of freedom

d.f = k -1 = 4 - 1 = 3

So from the critical value table, degree of freedom 3 and significance level 0.05,

the chi-square critical value is 7.8147

Therefore chi-square test statistics 31.9376 is greater than the chi-square critical value 7.8147, so NULL HYPOTHESIS IS REJECTED at 5% significance.

There is sufficient evidence to warrant rejection  of the claim that the distribution of the sample agrees with the distribution of the state populations.

3 0
3 years ago
What is the sum of the first 75 even numbers starting with 2? Enter your answer in the box.
vova2212 [387]

Answer:

5700

Step-by-step explanation:

step 1 Address the formula, input parameters & values.

Input parameters & values:

The number series 2, 4, 6, 8, 10, 12, .  .  .  .  , 150.

The first term a = 2

The common difference d = 2

Total number of terms n = 75

step 2 apply the input parameter values in the AP formula

Sum = n/2 x (a + Tn)

= 75/2 x (2 + 150)

= (75 x 152)/ 2

= 11400/2

2 + 4 + 6 + 8 + 10 + 12 + .  .  .  .   + 150 = 5700

Therefore, 5700 is the sum of first 75 even numbers.

6 0
3 years ago
Read 2 more answers
Which expression is equivalent to 64y18 – 1000z6?
const2013 [10]
(16y6)3 - (10z2)3 I think is the right answer
3 0
3 years ago
Read 2 more answers
9x 2 - 18x - 7 ÷ (3x + 1)
Harman [31]

Answer:

The quotient is: 3x-7

The remainder is: 0

Step-by-step explanation:

We need to divide 9x^2 - 18x - 7 ÷ (3x + 1)

The Division is shown in the figure attached.

The quotient is: 3x-7

The remainder is: 0

8 0
2 years ago
Six friends went out to lunch they each started with the same amount of money and they each spent 8$ they ended with a combined
ss7ja [257]

Answer:

8

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • Kari thinks, "x is the difference between 87 and 34.25 is this true or not?
    8·1 answer
  • How tho ? Steps by step helppp !
    15·1 answer
  • Help me with 20,21 and 22
    7·1 answer
  • What is the area of a 6x6x6 equilateral triangle?
    5·2 answers
  • What is 60 as a ratio
    11·1 answer
  • 8.
    5·1 answer
  • Select another name for angle 2 in the figure below.
    8·1 answer
  • Hello!! can you please help me? I've been trying to answer this question for a while now, but I cant seem to figure it out. (9th
    8·1 answer
  • PLEASE HELP!! will give brainliest for the right answer.
    7·1 answer
  • Answer the questions below about Line 1 and Line 2 shown below.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!