文件名称:java slot machine
-
所属分类:
- 标签属性:
- 上传时间:2015-10-14
-
文件大小:912byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
In this laboratory you will write a simplified version of a slot machine. Although physical slot machines can be used for gambling, we are not gambling in this class. We are playing for points only . Here is how a simple slot machine works: Three numbers between 1 and 10 are drawn randomly. If all three numbers match you win 75 points. If the numbers are all 7, you win 750 points. If two numbers match, but not three, you win 5 points. If you have two 7s (but not three 7s), then you win 20 points. If no numbers match, then you lose one point. The user interface can be very simple: Your numbers are: 5 7 1 I’m sorry but you lost a point Here is a more lucrative turn: Your numbers are : 5 7 5 Congratulations! You won 5 points! The program should play repeatedly until the user chooses to quit, or the user loses all of their money.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : SlotMachine.zip 列表 SlotMachine.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.