Question: For the following R code. The argument is constructed correctly. How would I figure out how many outcomes of the 4000 tries are above 6

For the following R code. The argument is constructed correctly. How would I figure out how many outcomes of the 4000 tries are above 6 minutes?

for (i in 1:4000) {

rainTime = runif(n = 1, min = 1, max = 2)

rainFlag = rbern(n = 1, prob = 0.3)

rainX = (rainTime * rainFlag)

wash = runif(n = 1, min = 2, max = 3)

prewash = runif(n = 1, min = 1, max = 2)

totalTime = (wash + prewash + rainX)

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!