Displaying 1 result from an estimated 1 matches for "total_solved".
Did you mean:
total_unsolved
2011 Mar 06
2
Monte carlo help
...rs
a <- 0; # probability of students coming in
tutors <- 2; # number of tutors
cat("week", "weekday", "hours", "tutors", "students", " solved", "
unsolved","\n");
total_stud <- 0; #total student number
total_solved <- 0; #total number of questions answered
total_unsolved <- 0; #total number of questions unanswered
for (week in 1:3) {
for (weekday in 1:5) {
for (hours in 1:11) {
solved <- 0;
unsolved <- 0;
if (hours == 1) {
a <- 1/5;
} else if (hours == 2) {
a <- 1/6...