Vending Machine Application using C# programming

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kunthea
    New Member
    • Mar 2008
    • 1

    Vending Machine Application using C# programming

    I am not that good at programming and I need a little push on how I can start my programming on the vending machine.

    The basic of the homework is that it displays four snacks and corresponding Labels that indicate numbers for each snack. I need to use a string array that contains the names of each snack. The GUI should contain a TextBox in which the user specifies the number of the desired snack. When the Dispense Snack Button is clicked, the name of the selected snack should be displayed. If the user enters a snack value not int he range, an IndexOutOfRange Exception will occur. Use exception handling so that whenever an IndexOutOfRange Exception occurs, a MessageBox is displayed indicating the proper range of values. Also, handle any possible FormatException s that may occur.

    If there is a possible way for you to give me a little push on how to start it, then I'll be okay from there. But right now, I wouldn't know how to start it. Thank you.

    P.S. I'm using the program Microsoft Visual C# 2005 Express Edition.

    -Kunthea
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    We call this a homework question, where you ask someone else to do your work for you. Please read the posting guidelines before your next post, find a tutorial/book and attempt yourself. If you having problems with it after that, please come back and we will help you. I am closing this post.

    MODERATOR

    Comment

    Working...