Chapter 5: Goodies Lesson 3

5.4 A Day’s Activity

The application starts.

The raw data file will be used here and only once: The Business’s first Operation ever. Subsequent starts of the application will not need to use this file.

These are activities that might take place on a given day:

a. “Business” is selected.

b. “Inventory” is selected. 

c. Without restarting the application, it goes back to the main menu.

d. “Shopper” is selected:

Shopper 1 –Sunkist – 2 units –Coke — 3 units

Shopper 2 –Chips — 4 units –Cookies — 1 unit

Shopper 3 –Water — 2 units –Veggie-Sticks — 3 units

Shopper 4 –Fruit Snack — 5 units

e. Without restarting the application, it goes back to the main menu and the “Business” option is selected.

f. Business manager ends the business cycle and your application writes back to the database the current state of the vending machine.

g. Next business cycle starts and the business manager checks the inventory reflects the current state of the vending machine.

NOTHING TO SUBMIT.