登录
首页 » Java » Guessinggame

Guessinggame

于 2010-04-27 发布 文件大小:2KB
0 171
下载积分: 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 个回复

  • pintu
    一款有助于开发智力的拼图游戏,可以自由添加自己喜欢的图片,并进行3*3,4*4等分割(A contribute to the development of intelligence jigsaw puzzle, you can freely add their favorite pictures and 3* 3,4* 4 split)
    2013-04-16 12:01:18下载
    积分:1
  • 打地鼠
    基于MFC的入门级打地鼠游戏,该程序可以统计玩家获得的积分、逃脱数量、打死数量、失误数量,“地鼠”随机出现在网格内,玩家通过鼠标控制“锤子”,左键点击则落锤,点击“开始游戏”按钮开始游戏,点击“终止游戏”退出
    2022-03-25 12:03:11下载
    积分:1
  • chuangame
    VC++枣子穿纽游戏源码,类似扫雷游戏的界面,不过玩法有点不一样,游戏源代码在vc++6下编译通过,你应该通过源代码能看出些玩法来。   相关资料:在本游戏中,你将作为一名裁缝,将尽可能多的纽扣穿成一个闭合的路线。游戏初始有 15 个纽扣,随着时间的增加,纽扣数目也增加,当达到70个时游戏即结束。只能在有纽扣的点穿线,且只能在水平方向或竖直方向穿线。线可交叉,但有纽扣的点不能交叉连接。   透露点秘诀:要尽可能使连线长且该连线上的纽扣数多。(VC++ source code dates to wear new game, the game interface similar to mine, but a bit different from playing the game in the source code to compile under vc++6 passed through the source code you should be able to see more options. Relevant information: in this game, you will serve as a tailor, will be wearing buttons as much as possible into a closed line. Game initial 15 buttons, an increase over time, increase the number of buttons, when the 70 hours to reach the end of the game that is. Buttons can only point in the threading, and only in the horizontal direction or vertical direction of threading. Lines cross, but the buttons can not be cross-connect point. Point revealed the secret: To the extent possible, so long and the connection to connect on a few more buttons.)
    2009-07-16 21:48:30下载
    积分:1
  • chuanqi3
    传奇3服务端源码,测试过,能编译~ 非常不错的学习资源 里面没有map文件,要自己下载(The Mir3 sourcecode)
    2015-05-25 00:01:40下载
    积分:1
  • PC-boyi
    象棋是一种完全知识博弈,本书介绍一些技术应用于这种博弈(Chess is a game full of knowledge, the book introduces some of the techniques used in this game)
    2011-11-11 17:51:47下载
    积分:1
  • gameScheme
    小伟报名参加中央电视台的智力大冲浪节目,本次挑战赛吸引了众多参赛者,主持人为了表彰大家的勇气,先奖励每个参赛者m元。先不要太高兴!因为这些钱还不一定都是你的!接下来主持人宣布了比赛规则: 首先,比赛时间分为n个时段(n≤500),它又给出了很多小游戏,每个小游戏都必须在规定期限ti前完成(1≤ti≤n)。如果一个游戏没能在规定期限前完成,则要从奖励费m元中扣去一部分钱wi,wi为自然数,不同的游戏扣去的钱是不一样的。当然,每个游戏本身都很简单,保证每个参赛者都能在一个时段内完成,而且都必须从整时段开始。主持人只是想考考每个参赛者如何安排组织自己做游戏的顺序。作为参赛者,小伟很想赢得冠军,当然更想赢取最多的钱!注意:比赛绝对不会让参赛者赔钱! (Xiaowei enroll CCTV intellectual big surf program, The Challenge has attracted many participants, we commend the courage to host first award each participant m, respectively. Let us not be too happy! Because these are not necessarily paying the money you! Then the host announced the rules of the game: First, the game is divided into n time periods (n ≤ 500), it also gives a lot of games, each game must be completed before the specified period ti (1 ≤ ti ≤ n). If a game could not be completed before the specified period, the deduction from the fee m-ary part of the money in reward wi, wi is a natural number, different game deduct money is not the same. Of course, every game itself is very simple, to ensure that each participant can be completed within a period of time, but must start from the entire period. Moderator just want to quiz each participant how to make their own arrangements for the organization of the game in order. As a participant, Xiaowei wanted to win, of course, want t)
    2013-12-01 20:10:44下载
    积分:1
  • My_Shoot
    飞机大战 使用面板来实现,利用鼠标的移动来控制英雄机的移动(World War II Aircraft Mobile use of the panel is achieved by using the mouse to control the hero moving machine)
    2016-05-16 14:55:33下载
    积分:1
  • gobangCPP
    C++五子棋代码,有详细的算法注释,代AI算法...可直接运行(C++ gobang game code-with AI。it can work directly)
    2012-07-01 18:32:24下载
    积分:1
  • 猜字
    通过在1-10000中随机选取一个整数,让玩家猜测。猜测中会提示玩家,所猜的数字偏大或偏小。(By selecting an integer randomly in 1-10000, let the player guess. In guessing, the player will be prompted. The number of guesses is larger or smaller.)
    2018-01-20 17:20:34下载
    积分:1
  • Tetris
    Tetris game for alll tho need to start coding games
    2012-07-11 16:33:41下载
    积分:1
  • 696516资源总数
  • 106415会员总数
  • 3今日下载