User`s guide

Appendix
VEE User’s Guide 499
General Programming Techniques
Apple Bagger
You want to know how many apples it takes to fill a ten pound
basket. Create a VEE program that counts how many apples it
takes to fill the basket. Each apple weighs between 0 and 1
pound.
Suggestions
This program can be created with 10 or fewer objects. Choose
from the following objects:
Solution 1—Apple Bagger
Figure 278 shows one solution to the Apple Bagger exercise.
Start
Until Break
random() function
Accumulator
Break
Real64
Conditional (A>=B)
Stop
Counter
If/Then/Else
Alphanumeric
NOTE
The VEE programs for many of the lab exercises and programming
examples in this manual are included in VEE, under Help Open
Example... Manual UsersGuide.