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
Enter the range of values for x:<br> А<br> 52° 31°<br> B<br> 12<br> D<br> 2x - 6<br> 3
Vinvika [58]

Answer:

it's 9 I just took this assignment

5 0
3 years ago
What is the area of this irregular figure knowing that the formula for the area of a rectangle is l x w.
Lubov Fominskaja [6]

9514 1404 393

Answer:

  42 cm²

Step-by-step explanation:

The attachment shows a couple of ways the figure can be considered.

a) Left and Right rectangles that are 5 cm high and 3 cm wide, together with a central rectangle that is 3 cm high and 4 cm wide. Then the total area is ...

  5×3 + 3×4 + 5×3 = 15 + 12 + 15 = 42 . . . . cm²

__

b) An enclosing rectangle that is 5 cm high and 10 cm wide with a cut-out that is 2 cm high and 4 cm wide. Then the total area is ...

  5×10 -2×4 = 50 -8 = 42 . . . . cm²

__

The area of the irregular figure is 42 cm².

3 0
3 years ago
In a 100-percent-reserve banking system, if a customer deposits $100 of currency into a bank, then the money supply:
Nataliya [291]

Answer:

Option D.

Step-by-step explanation:

The total stock of currency and other liquid instruments circulating in the economy of a country as of a particular time is known as money supply.

If the reserve requirements of banks is least then banks are able to loan more money, that will increases the overall supply of money in the economy.

In 100% reserve banking system, 100% amount of each depositor's funds would be required to keep by bank for immediate withdrawal on demand.

100% reserve banking system is also known as Full-reserve banking system.

It means, if a customer deposits $100 of currency into a bank with 100% reserve banking system, then the money supply remains the same.

Therefore, the correct option is D.

5 0
3 years ago
Can someone help with this plz Its brining down my grade
Angelina_Jolie [31]
Use Photomath or desmo to give you the answer
7 0
3 years ago
Jeremiah got 8 out of 10 problems correct on his test. Mariah got 36 out of 40 problems correct on her test. Who got the greater
Andreas93 [3]

Answer:

Mariah

Step-by-step explanation:

If you divide 8/10 you get .8 move the decimal 2 times to the left and you get 80%.

Then you divide 36/40 and get .9 move the decimal 2 times to the left and you get 90%

3 0
3 years ago
Read 2 more answers
Other questions:
  • 7n-1&gt;-169 does anyone know this answer?
    6·2 answers
  • Enrollment in a business class decreased from 25 to 15 students. What was the percent of decrease in enrollment?
    13·2 answers
  • How do I do this please help!
    15·1 answer
  • Simplify the expression - 3+(-2/5)
    7·2 answers
  • Hey Help. Give the answer to The Collatz Conjecture. If you don’t, then you’re not very nice.
    7·2 answers
  • The diagram shows a 5 cm x 5 cm x 5 cm cube.
    11·2 answers
  • A van travels 150 miles on 6 gallons of gas. How many gallons will it need to travel 325 miles?
    7·2 answers
  • Mark’s canoes rents canoes for $20 plus $13 per hour. You do not want to spend more than $150. For how many hours can you afford
    10·1 answer
  • Someone help. (Find the area of a rectangle with a lenght of 5a^2 b^4 and a width of (3ab^3)^2
    13·1 answer
  • Solve by completing the square 2x^2+x-4=0​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!