2012年9月13日 星期四

C程式練習HW1-1

Homework1-1
Write a program to simulate a vending machine.

  1. List the items and price Your vending machine should have at least 10 items. Each student should choice different items to sell. 
  2. The customer first selects an item.
  3. The customer put coins into the machine.
  4. The machine discharges the selected item and give you the change if the coins are enough, otherwise indicates there is not enough money.

[Read More..]