Appendix A 469
Additional Lab Exercises
General Programming Techniques
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:
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.