Question: PROGRAM STATE DIAGRAM Assignment This assignment involves the development of a vending machine. Our vending machine takes nickels, dimes and quarters and vends one of

 PROGRAM STATE DIAGRAM Assignment This assignment involves the development of a

PROGRAM STATE DIAGRAM

Assignment This assignment involves the development of a vending machine. Our vending machine takes nickels, dimes and quarters and vends one of 5 items. Two of the items are chips and 3 are candy bars. The chips cost 50 cents and the candy bars cost 60 cents. The display (7-seg) indicates the total amount inserted into the machine. If an item is selected and insufficient funds have been entered the display will indicate dash dash, the required amount, and 2 more dashes, then return to displaying the amount already entered f an item is selected and there is a sufficient amount entered the display w indicate the word "vend followed by a space and the appropriate number1-5. In addition, an LED will light corresponding to the selected item. The machine will then return to the ready state. The machine does not give change, but a button will be assigned to cancel the sale. When this occurs the display indicates 'cancel' and all 5 product LEDs light up. The machine will then return to the ready state. Inputs: rstb, clk, 4 buttons (Nickle, Dime, Quarter, Cancel), 5 sliders (chip1, chip2, candy1, candy2, candy 3) outputs: 7 seg display, 5 LEDS (one for each item) Part 1: Define your states and outputs. Create a state diagram for your finite state machine. Assignment This assignment involves the development of a vending machine. Our vending machine takes nickels, dimes and quarters and vends one of 5 items. Two of the items are chips and 3 are candy bars. The chips cost 50 cents and the candy bars cost 60 cents. The display (7-seg) indicates the total amount inserted into the machine. If an item is selected and insufficient funds have been entered the display will indicate dash dash, the required amount, and 2 more dashes, then return to displaying the amount already entered f an item is selected and there is a sufficient amount entered the display w indicate the word "vend followed by a space and the appropriate number1-5. In addition, an LED will light corresponding to the selected item. The machine will then return to the ready state. The machine does not give change, but a button will be assigned to cancel the sale. When this occurs the display indicates 'cancel' and all 5 product LEDs light up. The machine will then return to the ready state. Inputs: rstb, clk, 4 buttons (Nickle, Dime, Quarter, Cancel), 5 sliders (chip1, chip2, candy1, candy2, candy 3) outputs: 7 seg display, 5 LEDS (one for each item) Part 1: Define your states and outputs. Create a state diagram for your finite state machine

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!