文件名称:SimpleChanceSystem
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- 易*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
首先提示用户选择玩法
玩法1:21选5
输入5个数(从1,2,…,21选)
玩法2:6+1
输入7个数字(代表购买彩票的号码,最后一位特别号)
根据用户选择的玩法,随机生成开奖号码,与用户输入的号码比较,判断是否中奖、中几等奖,并输出结果。
规则:
21选5
一等奖:5个号码相同
二等奖:4个号码相同
三等奖:3个号码相同
6+1
特等奖:6+1
一等奖:6
二等奖:连续5位数相同
三等奖:连续4位数相同
四等奖:连续3位数相同
-First prompts the user to choose the election 1:21 Play Play enter 5 number 5 (from 1,2, ..., 21 elected) 2:6 1 input playing seven figures (on behalf of the purchase of lottery numbers, and finally a special No.) According to the user s selection of ways of randomly generated lottery numbers, with the numbers entered by the user compared to determine whether the winner, in a few such awards, and output results. Rules: the first prize of 21 electoral 5: 5 numbers the same as the second prize: four numbers the same prize: the same three numbers 6 1 Grand Prize: 6 1 Class: 6 second prize: for the same 5-digit third-class Award: 4-digit consecutive四等奖the same: the same for the 3-digit
玩法1:21选5
输入5个数(从1,2,…,21选)
玩法2:6+1
输入7个数字(代表购买彩票的号码,最后一位特别号)
根据用户选择的玩法,随机生成开奖号码,与用户输入的号码比较,判断是否中奖、中几等奖,并输出结果。
规则:
21选5
一等奖:5个号码相同
二等奖:4个号码相同
三等奖:3个号码相同
6+1
特等奖:6+1
一等奖:6
二等奖:连续5位数相同
三等奖:连续4位数相同
四等奖:连续3位数相同
-First prompts the user to choose the election 1:21 Play Play enter 5 number 5 (from 1,2, ..., 21 elected) 2:6 1 input playing seven figures (on behalf of the purchase of lottery numbers, and finally a special No.) According to the user s selection of ways of randomly generated lottery numbers, with the numbers entered by the user compared to determine whether the winner, in a few such awards, and output results. Rules: the first prize of 21 electoral 5: 5 numbers the same as the second prize: four numbers the same prize: the same three numbers 6 1 Grand Prize: 6 1 Class: 6 second prize: for the same 5-digit third-class Award: 4-digit consecutive四等奖the same: the same for the 3-digit
(系统自动生成,下载前可以参看下载内容)
下载文件列表
彩票系统
........\.classpath
........\.project
........\chance.class
........\chance.java
........\Game1.class
........\Game1.java
........\Game2.class
........\Game2.java
........\mypg
........\....\InputData.class
........\....\InputData.java
........\.classpath
........\.project
........\chance.class
........\chance.java
........\Game1.class
........\Game1.java
........\Game2.class
........\Game2.java
........\mypg
........\....\InputData.class
........\....\InputData.java