文件名称:automachine
介绍说明--下载内容来自于网络,使用问题请自行百度
自动售货机
l 设计要求:
1.机器有一个投币孔,每次只能投入一枚硬币,但可以连续投入多枚硬币。机器能识别的硬币金额为1元,5角和1角。顾客可选择的饮料价格有1元,1元5角,2元三种。每次只能售出1瓶饮料。
2.购买饮料时先选择饮料价格再投币,当投入的硬币总金额达到或超过饮料价格后,机器发出指示信号并拒收继续投入的硬币。顾客投币后,按动确定键,机器将发出饮料和找零硬币,若所投金额不足,则发出欠资信号指示。在欠资情况下,顾客可以继续投币购买,也可按取消键,机器将退出所投入的全部金额。
3.顾客投入硬币之后,如果未按确定键而按取消键,机器也将退出所投入的全部金额。
4.找零或退币时,按由大到小原则处理,即总金额超过1元时,先退出1元硬币,超过5角时,先退5角,不足5角,才退出1角。-vending machine design requirements : 1. Slot machines have a hole when they put a coin, but can invest more consecutive coin. Machines can identify the amount of coins to one yuan, 5 cents and 10 cents. Customers can choose the beverage prices one billion dollar five cents, three two yuan. Every time they can sell a bottle beverage. 2. When buying drinks first choice beverage prices again coin, once the total amount of coins or more drinks prices, machines issued instructions signals and continue to invest rejection of the coins. Coin customers, identify key activated, the machine will issue a drink and have sought coins, and if the vote is insufficient. issued less-signal instructions. In less funding, customers can continue to buy coin can also be canceled button, the machine will have
l 设计要求:
1.机器有一个投币孔,每次只能投入一枚硬币,但可以连续投入多枚硬币。机器能识别的硬币金额为1元,5角和1角。顾客可选择的饮料价格有1元,1元5角,2元三种。每次只能售出1瓶饮料。
2.购买饮料时先选择饮料价格再投币,当投入的硬币总金额达到或超过饮料价格后,机器发出指示信号并拒收继续投入的硬币。顾客投币后,按动确定键,机器将发出饮料和找零硬币,若所投金额不足,则发出欠资信号指示。在欠资情况下,顾客可以继续投币购买,也可按取消键,机器将退出所投入的全部金额。
3.顾客投入硬币之后,如果未按确定键而按取消键,机器也将退出所投入的全部金额。
4.找零或退币时,按由大到小原则处理,即总金额超过1元时,先退出1元硬币,超过5角时,先退5角,不足5角,才退出1角。-vending machine design requirements : 1. Slot machines have a hole when they put a coin, but can invest more consecutive coin. Machines can identify the amount of coins to one yuan, 5 cents and 10 cents. Customers can choose the beverage prices one billion dollar five cents, three two yuan. Every time they can sell a bottle beverage. 2. When buying drinks first choice beverage prices again coin, once the total amount of coins or more drinks prices, machines issued instructions signals and continue to invest rejection of the coins. Coin customers, identify key activated, the machine will issue a drink and have sought coins, and if the vote is insufficient. issued less-signal instructions. In less funding, customers can continue to buy coin can also be canceled button, the machine will have
(系统自动生成,下载前可以参看下载内容)
下载文件列表
自动售货机源程序.txt
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.