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
An octagonal pyramid ... how many faces does it have, how many vertices and how many edges? A triangular prism ... how many face
ser-zykov [4K]

1: 8 faces and 9 with the base 9 vertices and 16 edges

2: 3 faces and 5 with the bases 6 vertices and 9 edges

3: 3 faces and 4 with the base 4 vertices and 6 edges

Hope this can help you.

6 0
4 years ago
Of the songs in ivan's music library, 4/5 are rock songs. of the rock songs, 3/4 feature a guitar solo. what fraction of the son
BigorU [14]

In this case this "of" means we will multiply the two fractions "4/5 × 3/4" exists 3/5.

<h3>What are fractions?</h3>

That operation exists utilized to 'simplify' a fraction (reduce it to lower terms).

When there exists no number that goes into both the top and bottom numbers, then the fraction is in simplest form (lowest terms).

We are looking for 4/5 of 3/4. In this case this "of" means we will multiply the two fractions. To multiply fractions, we multiply

top × top and bottom × bottom

4/5 × 3/4 exists 4 × 3 on top and 5 × 4 on the bottom.

= (4 × 3)/(5 × 4)

= 12 / 20

= 3 / 5

Therefore, the correct answer is 3/5.

To learn more about fractions refer to:

brainly.com/question/571030

#SPJ4

4 0
2 years ago
Wuts 3039 divided by 6
Dafna11 [192]

Answer:

506.5

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
F(x) = 3x; find f(7)
enot [183]
F (7)=3 (7)=21 there's ur amswer
5 0
3 years ago
List all the factors of the number 30
denpristay [2]

Answer:

1, 2, 3, 5, 6, 10, 15, 30 there you go

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • What is the result of converting 2490 milliliter to liters
    8·1 answer
  • PLEASE HELP!!! Rewrite 2.26 ( a line over the 6 ) as a simplified fraction!! THANK YOU!
    8·2 answers
  • What is .336 written as a fraction?
    11·2 answers
  • Please show the work.
    10·1 answer
  • Which of the following equations represents the graph shown?
    5·2 answers
  • Which sequence is geometric
    12·1 answer
  • *PLEASEEEEEE HELP* 12 in Area = ****ANSWER WITH JUST THE NUMBER/ DON'T INCLUDE "pi" or the "square inches" ​
    15·1 answer
  • If you answer this you will get 100 points pls answer hurry it’s due in 20 mins
    13·2 answers
  • What is the volume of this sphere?
    15·2 answers
  • I need help with this question, please. This is non graded.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!