那位大哥可以帮忙用windows控件库 编一个自动售货机的程序
中文翻译在下面图片发不上来,希望愿意帮忙的朋友把邮箱留下,我会把完整的要求发到您的邮箱里
Scenario – Food Vending Machine
A software system is to be installed on a food vendor machine. The problem concerns the logic required to select and retrieve a product available in the food vendor machine with the following constraints.
1. A person can enter in money of $2.00, $1.00, 50¢, 20¢, 10¢, and 5¢ into the money slot. At any stage the person can push the eject button to retrieve their money; however, if a person retrieves a product from the machine then the remaining change is automatically dispensed.
2. Products have a price and a code to indicate the product in the vending machine. In actual fact the coding represents the position of the product on the vendor rack. Products positions are coded as follows: <letter><1-digit/2-digit number>. Examples are A1 or C9 or D10 or E11. Products also have a ticker count, which indicates how many items of that product is left. Each time an item of the product is dispensed, the ticker count reduces. When the counter is zero then no products can be dispesed
3. When a code is selected, the buttons on the LED display will light up as well as the entry will appear in the display panel. An audio sound will emit indicating that a button has been pressed.
4. Upon entering the correct code and pressing the enter button, the item selected will dispense. Pressing the clear button removes the code selected and clears the LED display.
Sample diagram of the LED display for a food vending machine
There is a lot of hidden content to this problem that you will need to discover. Most of the hidden content is the display messages to the LED display for all possible conditions.
食品自动售货机
软件系统将被安装在食品厂家机器。 问题有关要求的逻辑选择和检索产品可利用在与以下限制的食品厂家机器
1. 人能在$2.00, $1.00, 50¢、20¢、10¢和5¢金钱输入金钱槽孔。 在任何个阶段人能按抛出按钮检索他们的金钱; 然而,如果人从机器检索产品然后剩余的变动自动地被分与。
2. 产品有一个价格和表明一个的代码在自动售货机的产品。 实际上编制程序代表产品的位置在供营商机架。 产品位置被编码如下: . 例子是A1或C9或者D10或者E11。 产品也有断续装置计数,表明那个产品多少个项目被留下。 每次产品的项目被分与,断续装置计数减少。 当柜台零然后时产品不可以被分与
3. 当代码被选择,在LED显示的按钮将打开以及词条将出现于显示板。 音频声音将散发表明按钮按
4. 当键入正确代码和按输入按钮后,选择的项目将分与。 按清楚的按钮去除选择的代码并且清除LED显示。
有很多暗藏的内容对您将需要发现的这个问题。 大多数暗藏的内容是显示消息对所有可能的情况的LED显示。
[[it] 本帖最后由 elviszzq 于 2008-9-26 15:49 编辑 [/it]]