I dont know why I get the error in the second part where it said could not convert string to float. in the code totalRunningTime = totalRunningTime + float(line)
Question 2 A door-to-door telecommunications representative has recorded her day-by- day sales figures over a period of time. She knows that her probability of selling X packages on any one day follows the probability distribution shown in the table. 0 2 3 4 5 >5 Pr(X = y) 212 31 212 21 412 + 0 i. Find the value of t. ii. Find the probability that she sells at least 2 packages on any one day. iii. Find the probability that she sells at most 4 packages on any one day. iv. Find the number of packages she can expect to sell each day. v. Calculate the Var(X) and standard deviation of X, correct to 4 decimal places. vi. Find Prlu - 20 SX su + 20). vii. If the representative receives a commission of $25 per package sold and a bonus of $200 if she sells 4 or more packages in one day, find her expected daily earnings from commissions and bonuses. viii. Given that the representative will sell at least two packages tomorrow, find the probability that she will get her $200 bonus. Question 2 A door-to-door telecommunications representative has recorded her day-by- day sales figures over a period of time. She knows that her probability of selling X packages on any one day follows the probability distribution shown in the table. 0 . 1 2. 3 4 5 >5 Pr(X= y) 212 31 212 21 412 + 1 0 i. Find the value of t. ii. Find the probability that she sells at least 2 packages on any one day. iii. Find the probability that she sells at most 4 packages on any one day. iv. Find the number of packages she can expect to sell each day. v. Calculate the Var(X) and standard deviation of X, correct to 4 decimal places. vi. Find Prlu - 20 SX S1+20). vii. If the representative receives a commission of $25 per package sold and a bonus of $200 if she sells 4 or more packages in one day, find her expected daily earnings from commissions and bonuses. viii. Given that the representative will sell at least two packages tomorrow, find the probability that she will get her $200 bonus