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
IceJOKER [234]
3 years ago
6

Errors in the programming language Python can be broadly classified into two types, syntax errors, and logical errors. When writ

ing a program the first time, the probability for syntax errors to arise is 0.3, that for logical errors is 0.5, and that for both errors to occur is 0.1.(a) Find the probability that no syntax errors occur.(b) Find the probability that no errors occur.(c) Find the probability that errors of any type occur.(d) The programmer found a syntax error in the code. What is the probability that there are also logical errors based on this finding?(e) Are the events of having syntax errors and logical errors independent? Also, explain why.
Mathematics
1 answer:
Alenkasestr [34]3 years ago
5 0

Answer:

Step-by-step explanation:

a( Pr(no syntax error) = 1-Pr(syntax error arises)

Pr(no syntax error) = 1 -0.3

Pr(no syntax error) = 0.7

b) Pr(no error occurred) = 1-Pr(both error occurred)

Pr(no error occurred) = 1-0.1

Pr(no error occurred) = 0.9

c) Pr(any type of error occurred) = Pr(syntax error occur)+Pr(logical)

Pr(any type of error occurred) = 0.5+0.3 = 0.8

d) Pr(syntax and logical) = Pr(syntax occur)+Pr(logical or syntax occur)

= 0.3+0.1

= 0.4

e) Independent event are events that occurs at the same time. The occurrence of one does not affect the other.

Pr(logical and syntax) = pr(syntax)×pr(logical)

Given

pr(syntax)×pr(logical) = 0.3×0.5 = 0.15

From the question, Pr(logical and syntax) = Pr(both error occurred) = 0.1

Since Pr(logical and syntax) ≠ pr(syntax)×pr(logical), this means that the errors are not independent

You might be interested in
How do you slove this equation <br> 12 n3<br> -------<br> 3(n4)2
sergejj [24]

Answer:

36n

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

24n

8 0
3 years ago
Read 2 more answers
Solve the system of linear equations below by graphing. x-y=17 and 3x+y=3
soldier1979 [14.2K]

Answer:

x=5,y=-12

Step-by-step explanation:

You add the two equations to get: 4x=20

Then you get x=5.

You plug this in to x-y=17 to get y=-12

The answer is x=5 and y=-12

8 0
3 years ago
The ratio of boys to girls in the gym is 4 to 5. There are 20 girls in the gym.
11Alexandr11 [23.1K]
16:20 because u multiply them by 4 each
8 0
3 years ago
Read 2 more answers
Please help me!!!!! Show your work 45-45-90 method &lt;3
aivan3 [116]

Answer:

hope it helps and u understand

check the steps in picture attached

7 0
3 years ago
Read 2 more answers
2o points + follow? <br> Find the slope of the line graphed below?<br><br> Thank youuuu
Soloha48 [4]

The slope is 5/3 since it rises 5 then runs 3 and is positive.

7 0
3 years ago
Other questions:
  • If a television station shows commercials for 13 1/2 minutes each hour how many 45 second commercials can the show play
    5·1 answer
  • There are 172 South American animals in the Springdale Zoo. That is 45 more than half the number of African animals in the zoo.
    9·1 answer
  • What is the Mean Absolute Deviation or MAD for each city?
    8·2 answers
  • What does 6/10+1/100=
    6·2 answers
  • What is the standard deviation of the data set? Round to the nearest tenth if needed.
    5·1 answer
  • Write two expressions that are equivalent to 2(x+4)​
    8·1 answer
  • A cylindrical tank has a base with a circumference of meters and an isosceles right triangle painted on the interior side of the
    13·1 answer
  • Giving/rewarding brainly for correct answer
    15·2 answers
  • 3.6 pounds of apples cost $2.88. Find the cost per pound
    8·1 answer
  • IF YOU DONT KNOW THE QUESTION, PLEASE DONT ANSWER IT FOR THE PONIS. I REALLY NEED IT
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!