Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

FinalExam Review Spring2006: Make a Super Truck

Questions? Answers? Comments? Comments on Questions or Answers?
(Back to Final Exam Review Spring2006)



more load:
change '' public int newLoad(){
return 10+randNumGen.nextInt(11);
} ''
to '' public int newLoad(){
return 20+randNumGen.nextInt(11);
} ''

speed:
change '' public double tripTime(){
double delay = randNumGen.nextGaussian()+3; ''
to '' public double tripTime(){
double delay = randNumGen.nextGaussian()+2; ''

i think, let me know if i'm right/wrong

Sorry – forgot to post after we discussed this in class. Yup, this looks completely right! Mark Guzdial



Link to this Page