| revised 10/09/98; 08/09/99; 04/18/00 |
CHAPTER 19 --- Result-controlled LoopsA third kind of loop can be built from the fundamental control statements in Java. This kind of loop is the result-controlled loop. (Other names for it are free loop and general loop). A result-controlled loop keeps looping until the computation has reached a particular goal. It is like the instruction in a cookie recipe that says "keep stirring until the ingredients are thoroughly blended." You know when to quit only when the desired result has been achieved. Chapter Topics:
|
QUESTION 1:You put $1000 in the bank at 5% annual simple interest. How much will you have at the end of one year? Click Here after you have answered the question |