Scratch: Vending Machine

Your mission is to program a Scratch vending machine.

Here’s a video preview of the completed Vending Machine. 

Read the assignment and fill out this planning form before you start.  

If you need a review of the REALLY IMPORTANT Scratch Inventory code click here for a full Inventory Code Tutorial.

You can work on your own or with a partner.  Note that there are different requirements for solo programmers and partner programmers:

Requirements – in addition to the above:

  1. your vending machine needs a display to show messages.  Check the assignment requirements for these messages.
  2. use broadcast messages to trigger different events.
  3. when the item is not available, change the display message to show “not available”.

Advice:
1. use broadcast messages to trigger events
2. create costumes for the different screen messages (tap to select item, processing, item added, not available)
3. create costumes for each product that shows produce or switches to “not available” sprite when inventory equals zero.
4. uses lists to track shopping cart and calculate a total