When a programmer compiles her code there is a 95% chance of finding a bug every time. It takes three hours to rewrite her code when she finds out a bug. Determine the probability such that she will finish her coding by the end of her workday. (Assume, a workday is 7 hours)

When a programmer compiles her code there is a 95% chance of finding a bug every time. It takes three hours to rewrite her code when she finds out a bug. Determine the probability such that she will finish her coding by the end of her workday. (Assume, a workday is 7 hours) Correct Answer 0.2

A success is a bug-free compilation, and a failure is the finding out of a bug. The programmer has 0, 1, 2, or 3 failures and so her probability of finishing the program is : Pr(X=0) + Pr(X=1) + Pr(X=2) + Pr(X=3) = (0.95)0(0.05) + (0.95)0(0.05) + (0.95)0(0.05) + (0.95)0(0.05) = 0.2.
Bissoy MCQ

Related Questions