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
What are the x-intercepts of the graph of the function f(x)= x^2+4x-12
levacccp [35]
(2,0)
(-6,0)
I just inserted the equation into a graphing calculator. Kinda lazy tonight :/
7 0
3 years ago
A building has two sizes of apartments Smart in regular the ratio of small apartments to regular apartments is 18 to 7 what perc
tino4ka555 [31]

Answer:

72 percent of the total houses are small

Step-by-step explanation:

The first step is to know the total apartments from the ratio: This is got by adding 18 + 7 = 25

The ratio of small apartments to regular ones is 18:7

To get the percentage that is small, we have to express the number of small houses when compared to the total available apartments. (<em>Note: not the regular ones) </em>as a percentage.

This will be (18/25) X 100 = 72%

Therefore, 72 percent of the total houses are small

3 0
3 years ago
Where are most of the rainforests found?
nadya68 [22]
"Volcanic highlands" is the one place among the following choices given in the question where <span>most of the rainforests are found. The correct option among all the options that are given in the question is the first option. I hope that this is the answer that has actually come to your desired help.</span>
8 0
3 years ago
The weight in pounds of a baby in the first six months of life can be modeled by the
gavmur [86]

Answer:

14.5

Step-by-step explanation:

You would plug 5 into the equation for m and have w = 1.5 (5) + 7

Then you would multiply 1.5 and 5 and get 7.5 and then add 7 and get 14.5

6 0
3 years ago
5/18 x 3/4 simplify ​
Lesechka [4]

Answer:

5/24

Step-by-step explanation:

Find a common denominator and multiply, then convert to its simplest form.

3 0
2 years ago
Other questions:
  • What is the answer to this problem?<br> 96+56+75+25*54+95(58)-95= ?
    15·2 answers
  • 4th question help please
    6·2 answers
  • (x)^3(-x^3y)^2<br>please help​
    10·1 answer
  • You created a new playlist, and 100 of your friends listened to it and shared if they liked the new playlist or not. Nadhii said
    12·1 answer
  • It takes Kevin 5 minutes to jog once around a circular track that has a diameter of 400 meters. About how many meters per minute
    10·1 answer
  • If the vine continues to grow at this rate, it will be. Inches long at the end of 5 weeks
    8·2 answers
  • What is the equation of the line that passes through the point (1,3) and has a slope of 6
    8·1 answer
  • I need help............
    7·1 answer
  • Jessica has a four-sided die, a six-sided die, and a 12-sided die. She rolls the three dice once. Let Z be the number of fours s
    11·1 answer
  • Please help me im begging ANYONE​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!