I am grading Unit 12, bubble 10 where the student wrote code to see how long it takes to get 12 heads in a row. I can’t tell if he did not do the assignment or if he did do the assignment and he then overwrote it in bubble 12 where students are encouraged to experiment. I pasted the code I see for Unit 12 bubble 10 which has nothing to do with coins. Would bubble 12 overwrite the answer in bubble 10? If so, I am sure I am not the first teacher to hit this problem. I will have to tell my students to NOT do bubble 12 so I can grade bubble 10 next year.

Code below.

var x = -1;

var y = 0;

var unl = 0;

while (y <= 100) {

x=randomNumber(1,20);

//write(x);

y++;

if(x<=3){

unl++;

write(“unl=”+unl);

}else{

unl=0;

}

}

write(“done”);