0% found this document useful (0 votes)
92 views1 page

Coke Machine

The document provides instructions for designing a controller for a Coke vending machine. The machine accepts quarters, nickels and dimes totaling to 50 cents for a Coke. It initializes controls and indicators, waits for coin input by button press, dispenses the Coke and returns change when 50 cents is reached, and allows returning deposited money before a purchase by pressing the return button.

Uploaded by

maryusso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views1 page

Coke Machine

The document provides instructions for designing a controller for a Coke vending machine. The machine accepts quarters, nickels and dimes totaling to 50 cents for a Coke. It initializes controls and indicators, waits for coin input by button press, dispenses the Coke and returns change when 50 cents is reached, and allows returning deposited money before a purchase by pressing the return button.

Uploaded by

maryusso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Design a controller for a Coke vending machine.

The Front Panel is provided to you.


The machine accepts combinations of quarters, nickels and dimes to get a coke. The
price of a coke is 50 cents.
When the application starts, all the controls and indicators must be initialized to
their default values.
The default application state is to wait for user input.
Inserting coins is simulated by pressing the buttons in the upper half of the
interface.
When the deposited amount reaches or exceeds the price of the coke the machine
dispenses the beverage and returns any change.
The deposited amount can be returned at any time by pressing the Return Change
button.
When a coke is dispensed the Coke Display control is rendered visible and the
application will terminate.
If the user pushes the return button before a coke is delivered the Deposited
amount is returned as Change and the application will terminate.

You might also like