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
A wire is needed to support a vertical pole 18 feet high. The cable will be
Drupady [299]
19.698 feet of cable would be needed, this would round up to 20 feet total.

7 0
3 years ago
Which of the following inequalities matches the graph?
zaharov [31]

Answer: the inequality that matches de graph is x ≤ 5.


Explanation:


1) The vertical line through the point (5,0) is represented by x = 5.


2) The area to the left of the vertical line x = 5 contents all the points whose x-coordinate is less than five.


Please, find attached the figure with the graph described in the question.


3) A solid line is used to indicate that the points on the line are included in the solution region (a dashed line is used to indicate that the points on the line are excluded)


Therefore, the graph includes the points on the line x = 5 and the points  with x-coordinate less than 5.


4) Hence, you have to use an inequality with the symbol ≤, which means less than or equal to.


x ≤ 5 means less than or equal to 5, which is the inequality searched.

4 0
3 years ago
Read 2 more answers
PLZ HURRY IT'S URGENT!!!!!
Arte-miy333 [17]

the ratio that is equal to 10:85 is 20:170 because if you multiply both sides by two you get 20:170

7 0
3 years ago
You are standing 350 feet away from a skyscraper that is 750 feet tall. What is the angel of elevation from you to the top of th
ipn [44]
tan\  \alpha = \frac{350}{750} = \frac{7}{15} \approx0.4667\ \ \ and\ \ \  \alpha

5 0
2 years ago
A 16 oz package of brown rice costs 79 cents and 32 oz package of white rice costs $3.49. Which package is a better buy
notka56 [123]
32 Oz of brown rice -> 79 * 2 = $1.58

The brown rice is better to buy because $1.52 is less than $3.49.

Please make this answer the brainiest~
7 0
3 years ago
Read 2 more answers
Other questions:
  • Use the echelon method to solve the following system of two equations in two unknowns. Check your answer. x+y=17 amd 9x-y=73
    15·1 answer
  • A drawer is filled with 7 black shirts,5 white shirts,10 gray shirts. one shirt is chosen at random from the drawer. find the pr
    8·1 answer
  • Consider the equation v + 4 + v = 8. What is the resulting equation after the first step in the solution?
    5·2 answers
  • Math question down below
    7·2 answers
  • Round 73.45 to the nearest whole number
    5·2 answers
  • The average price of a ticket to a baseball game can be approximated by ​p(x)equals0.03 x squared plus 0.42 x plus 9.63​, where
    12·1 answer
  • A cyclist travels 4.9 km in 30 minutes.<br> What is his average speed in km/h?
    10·1 answer
  • Do dis pls and don’t be toxic and take points
    15·1 answer
  • 7 less than the square of a number.
    8·1 answer
  • Solve the following:​
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!