登录
首页 » Java » Guessinggame

Guessinggame

于 2010-04-27 发布 文件大小:2KB
0 224
下载积分: 1 下载次数: 0

代码说明:

说明:   猜数字游戏 1.实验目的 使用if…else和循环语句解决问题。 2.实验要求 编写一个Java应用程序,实现以下功能: (1)程序随机产生一个1~100间的整数; (2)用户在输入对话框中输入自己的猜数; (3)程序根据用户猜测的数,给出提示信息,分别是:“猜大了”、“猜小了”和“猜对了”; (4)如果用户没猜对,可根据提示信息再次输入数,直到猜对为止。 (Guessing game 1. Purpose of the experiment using the if ... else statements and loops to solve the problem. 2. Experiments required to write a Java application, to achieve the following functions: (1) program to generate a random integer from 1 to 100 (2) user input dialog box, enter your own guessing (3) program the user to guess the number of given prompts, namely: " guess big" , " guess smaller" and " guessed it" (4) If the user did not guess right, can re-enter the number of reminder, until the guess on the up.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 海之魂2
    说明:  VS2008环境经典游戏,海之魂全套捕鱼代码.带浮动库存与阶梯控制。(VS2008 environment classic game, the soul of the sea fishing code. With floating inventory and ladder control.)
    2020-12-25 17:37:47下载
    积分:1
  • N-Queen
    : N皇后问题,在一个N×N国际象棋盘 上,有N个皇后,每个皇后占一格;要求皇后间不会出现 相互“攻击”的现象,即不能有两个皇后处在同一行、同一 列或同一对角线上。问共有多少种不同的方法。下图以4 个皇后为例,说明一个正确的解( N是一个大于等于2并 且小于等于100的整数)(: N queens problem, a NN chess disk, N-Queen, Queen of the grid requirements between each other " attack" phenomenon does not appear in the Queen' s, that can not have two queens in the same row , the same column or on the diagonal. Asked a total of a number of different ways. The following diagram 4 Queen, for example, indicating that a correct solution (N is a number greater than or equal to 2 and less than or equal to an integer of 100))
    2012-08-31 17:31:00下载
    积分:1
  • 圣诞老人过悬崖简单小源码
    圣诞老人过悬崖简单小游戏源码
    2021-05-06下载
    积分:1
  • linuxwin
    valve togl library to convert directx calls to opengl calls
    2020-06-24 21:00:01下载
    积分:1
  • Galactic_Warz_RPG
    又一个…… 为PUDN的网游同行们奉献。 PHP WEB GAME 国外可二次开发(PHP WEB GAME)
    2009-06-03 17:29:40下载
    积分:1
  • 源码_07211033
    锤子大战僵尸,简化版植物大战僵尸,类似于打地鼠,通过鼠标点击来实现僵尸击杀(HammerVSZombies_07211033)
    2020-06-22 23:40:01下载
    积分:1
  • TankWar_2
    java坦克游戏,在原基础上修改的第二版(java tank game, based on the original modified version)
    2012-10-22 03:57:25下载
    积分:1
  • Homework
    说明:  名片 管理 输入删除 修改名片,展示所有输入的名片,退出系统(Business card management input delete modified business card, display all input business card, exit the system)
    2020-10-05 10:30:36下载
    积分:1
  • 幻想西wap
    说明:  完整,稀有,市面上没有这么完整得wap php 文字游戏程序,怀念(Complete, rare, there is no such complete WAP PHP word game program on the market, miss)
    2020-09-25 05:57:50下载
    积分:1
  • 234234234
    一个javascript的游戏 一个javascript的游戏 (a javascript game one of the game a javascript java script of the game one of the game javascript)
    2007-05-26 11:01:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载