Results 1 to 1 of 1

Thread: [2005] please help with solution, i'm new to visual basic,simple vending machine program

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    1

    Post [2005] please help with solution, i'm new to visual basic,simple vending machine program

    the text below is short and simple. but i am finding it very hard to actualy code my form designs, i have designed two forms and am now trying to code them. if i succeed with completing this task i will hopefully gain alot of knowledge and then start to understand how visual basic works,
    please could you help
    _________________________________________________________________
    _________________________________________________________________
    i have attatched my completed screen designs, i understand that some changes to them may need to be made the help and information would really be appreciated
    ____________________________________________________________________________________________________ ______________________________

    Program Requirement
    A program is required to simulate a snack vending machine. The snack machine will vend crisps at 35p, chocolate biscuits at 40p, nuts at 50p and cereal bars at 55p. The program will run in a continuous loop. At points during the program, a menu will be displayed from which the user can either select a snack, or choose to checkout all snacks selected so far. If a snack has been selected the program will display the snack selected and ask the user to select how many they would like, then it will return to the menu. An entry of 0 will cause that selection to be ignored. The menu will always show all snacks that have been selected so far, with the quantities and the total amount to pay. The user can continue to select snacks until they are ready to buy.
    When the user chooses to checkout their purchases, they will be shown a list of the items and quantities they have chosen, a total amount to pay and a request to enter money. Money entry is simulated by the user entering the value of each coin. The machine will accept £10 notes, £5 notes, £2 coins, £1 coins, 50 pence, 20 pence, 10 pence and 5 pence. It must reject entries of all other monetary values except 0 which means that the user would like to cancel the purchase. As soon as enough money has been entered the snacks will be dispensed, one at a time (shown by displaying messages on the screen). If too much money was entered, change will be given.
    To maintain the correct working of the machine, the stock of each snack must be continually monitored and occasionally refilled. There will be 50 of each snack loaded in the machine at the beginning of the program. If a user chooses to buy more of a particular snack than is currently present in the machine, the program must tell them and allow them to reselect. The machine is refilled by selecting 0 at the main menu (this option should not be displayed). When 0 is selected the user is asked to enter how many of each snack they are loading into the machine (the total of the amount loaded and the amount still in the machine must not exceed 50).
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width