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
Which statements are true? Check all that apply. TIMED! WILL GIVE BRAINLIEST!
gladu [14]

Answer:

The 1st, 3rd, 4th, 5th are correct

7 0
3 years ago
Two angles are supplementary. The measure
BlackZzzverrR [31]

Answer:

57°

Step-by-step explanation:

Let's assume the measurement of the second angle is x.

so, following the problem

(2x + 9) + x = 180

2x + x = 3x

=> 3x + 9 = 180

=> 3x = 180 - 9

3x = 171

x = 171/3

x = 57°

57° is the smallest angle

5 0
3 years ago
What is the answer to y=3/4x+2 ???
pantera1 [17]
The answer is X=8/3
7 0
3 years ago
Given vectors u = -9i + 8j and v= 7i + 5j find 2u -6v in terms of unit vectors i and j
Aloiza [94]

Answer: - 60i - 14j

Step-by-step explanation:

- 18i + 16j  - 42i - 30j = - 60i - 14j

7 0
3 years ago
Read 2 more answers
If the diameter is 4 feet and<br> 18 inches, how long is the radius?
wel

Answer:

2 feet 9 inches

Step-by-step explanation:

Radius = Diameter/2

3 0
3 years ago
Read 2 more answers
Other questions:
  • Aunty Milie gives Simon $150 for his birthday. He invests the money in a bank at a rate of 6% per year compound interest. Calcul
    9·1 answer
  • 2. If m &lt;1 = 43, what is m &lt;4?
    10·1 answer
  • Simplify the expression: 52 – [30 – 2(7 – x)].
    15·1 answer
  • How many eighths are in 5 5/8?
    7·2 answers
  • -3-2(2x-3) simplified
    11·1 answer
  • 10 POINTS!!!!!!!!!!!!
    7·2 answers
  • Evaluate<br> + pq when p = 8 and q = 6.
    12·1 answer
  • Glacier State Bank pays 6% interest, compounded daily. After finding the daily interest rate (to the nearest millionths place) f
    12·1 answer
  • Marie is thinking of a number. She subtracts 5 from the number and then multiplying the result is -2. The result is 18. What num
    13·1 answer
  • 5. Which situation is NOT represented by the equation shown below?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!