RU beehive logo ITEC dept promo banner
ITEC 120
2012fall
dbraffitt
ibarland

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs

lect09a
while

Misc review questions:

We ended last time with a simple while-loop:

    while (stu.creditHours < 120) {
      stu.takeCourseInteractive();
    }
What is the fewest number of times this loop might execute the body?                  What is the most?                 
(lect09a-soln.html)

Change this:


1 store the before-fields, and compare to after-fields; update a variable/counter; Closed form solution.
Of course, do not make a new field, though!      

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs


©2012, Ian Barland, Radford University
Last modified 2012.Oct.23 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme