这是我需要做的 [英] Here is what i need to do
问题描述
您 必须 编写程序
饮料 自动售货机 具有1 可口可乐 - 可乐 ,
1 Sprite 1 Fanta . 还有饮料
花费12 SEK /每个 .
You must program a
drink vending machine with 1 Coca-Cola,
1 Sprite 1 Fanta. And the drinks
costs 12 SEK / each.
包含以下功能
在机器中 .
- 您应该 能够 输入
money 面额 1kr ,
5kr , 10kr 和 20kr .
- 机器 必须 保持跟踪
输入了多少 , 然后输入
.
- 您应该 能够选择 之间
各种 饮料 .
- 何时 您购买 您的饮料
或 取消 购买 正确
齿轮 被弹出 (以任何方式表示 ) .跨度>
( 如果没有 钱那么 程序将
指示 多少 丢失 和
询问 如果您 要输入 更多钱
或 取消 )
如果 您 购买 您的饮料
然后 一张 您的饮料 出现 的图片.
The following features are included
in the machine.
- You should be able to enter the
money in the denomination 1kr,
5kr, 10kr and 20kr.
- The machine must keep track of
how much has been entered, and enter
it in any way.
- You should be able to choose between
the various drinks that are available.
- When you buy your drinks
or cancel purchase the correct
gear is ejected (indicated in any way).
(if there is no money so the program will
indicate how much is missing and
ask if you want to enter more money
or cancel)
If you bought your drinks
then a picture of your drinks appear.
推荐答案
何时 购买 您的饮料 ,或 停止 购买 钱 被弹出
( 如果没有 钱那么 程序将 指示 多少 丢失 和 询问 如果您 要输入 更多钱 或 取消 )
When you buy your drinks, or stop buying the money is ejected
(if there is no money so the program will indicate how much is missing and ask if you want to enter more money or cancel)
这篇关于这是我需要做的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!