文件名称:Java
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:73.1kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个java应用程序。用户从键盘输入一个1-9999之间的数,程序将判断这个数是几位数,并判断这个数是否回文数。回文数是指将数含有的数字逆序排列后得到的数和原数相同,例如12121,4224,6778776等都是回文数。
1)程序具有判断用户的输入是否为合法整数的功能。对非法输入(例如含有字母)要进行处理。
2)要判断输入数的位数,并输出相关信息。
3)要判断是否回文数。
二、二战期间,英国情报人员获取德军的一机密电报,电报的内容为:
bzdz izu sxgzd vs lh ,vpzg woflsh vs vwrh vhlsddlmp glm wrw gzy vsg .gflyz gstfzu bvsg gzsd hdmlp vml lm ,hghzvy wmz hwiry mvvdgvy izd z hzd vivsg ,ltz tmlo tmlO
情报人员已经知道,这段电报的加密方式为:
1. 首先将字符串的顺序颠倒。
2. 字母互换的规律为:A->Z, B-Y, C-X...X->C, Y->B, Z-A a->z, b->y, c-x...x->c, y->b, z->a.
3. 非字母字符保持不变。
请编程帮助情报人员破译这份机密电报。给出注释良好的源程序和程序运行后的结果。
-Write a java application. User keyboard input from a number between 1-9999, the program will determine the number of a few are a few, and to determine whether the number of palindrome number. Palindrome refers to a number of the figure contains a number of reverse order and after a number of the original number of the same, such as the number of 12121,4224,6778776 are palindrome.
1) procedures to determine whether the user s input as a legitimate function of an integer. Illegal input (such as with letters) to deal with.
2) To determine the median number of input and output-related information.
3) To determine whether the palindrome number.
Second, during World War II, British intelligence agents to obtain a confidential German Telegram, Telegram says:
bzdz izu sxgzd vs lh, vpzg woflsh vs vwrh vhlsddlmp glm wrw gzy vsg. gflyz gstfzu bvsg gzsd hdmlp vml lm, hghzvy wmz hwiry mvvdgvy izd z hzd vivsg, ltz tmlo tmlO
Intelligence agents are already aware, this encryption method
1)程序具有判断用户的输入是否为合法整数的功能。对非法输入(例如含有字母)要进行处理。
2)要判断输入数的位数,并输出相关信息。
3)要判断是否回文数。
二、二战期间,英国情报人员获取德军的一机密电报,电报的内容为:
bzdz izu sxgzd vs lh ,vpzg woflsh vs vwrh vhlsddlmp glm wrw gzy vsg .gflyz gstfzu bvsg gzsd hdmlp vml lm ,hghzvy wmz hwiry mvvdgvy izd z hzd vivsg ,ltz tmlo tmlO
情报人员已经知道,这段电报的加密方式为:
1. 首先将字符串的顺序颠倒。
2. 字母互换的规律为:A->Z, B-Y, C-X...X->C, Y->B, Z-A a->z, b->y, c-x...x->c, y->b, z->a.
3. 非字母字符保持不变。
请编程帮助情报人员破译这份机密电报。给出注释良好的源程序和程序运行后的结果。
-Write a java application. User keyboard input from a number between 1-9999, the program will determine the number of a few are a few, and to determine whether the number of palindrome number. Palindrome refers to a number of the figure contains a number of reverse order and after a number of the original number of the same, such as the number of 12121,4224,6778776 are palindrome.
1) procedures to determine whether the user s input as a legitimate function of an integer. Illegal input (such as with letters) to deal with.
2) To determine the median number of input and output-related information.
3) To determine whether the palindrome number.
Second, during World War II, British intelligence agents to obtain a confidential German Telegram, Telegram says:
bzdz izu sxgzd vs lh, vpzg woflsh vs vwrh vhlsddlmp glm wrw gzy vsg. gflyz gstfzu bvsg gzsd hdmlp vml lm, hghzvy wmz hwiry mvvdgvy izd z hzd vivsg, ltz tmlo tmlO
Intelligence agents are already aware, this encryption method
(系统自动生成,下载前可以参看下载内容)
下载文件列表
06_6999_林浩强/第一题/.classpath
06_6999_林浩强/第一题/.project
06_6999_林浩强/第一题/bin/JudgeNumber.class
06_6999_林浩强/第一题/src/JudgeNumber.java
06_6999_林浩强/第二题/.classpath
06_6999_林浩强/第二题/.project
06_6999_林浩强/第二题/bin/TextCrackCode.class
06_6999_林浩强/第二题/src/TextCrackCode.java
06_6999_林浩强/软件0603_3106006999_林浩强.doc
06_6999_林浩强/第一题/bin
06_6999_林浩强/第一题/src
06_6999_林浩强/第二题/bin
06_6999_林浩强/第二题/src
06_6999_林浩强/第一题
06_6999_林浩强/第二题
06_6999_林浩强
06_6999_林浩强/第一题/.project
06_6999_林浩强/第一题/bin/JudgeNumber.class
06_6999_林浩强/第一题/src/JudgeNumber.java
06_6999_林浩强/第二题/.classpath
06_6999_林浩强/第二题/.project
06_6999_林浩强/第二题/bin/TextCrackCode.class
06_6999_林浩强/第二题/src/TextCrackCode.java
06_6999_林浩强/软件0603_3106006999_林浩强.doc
06_6999_林浩强/第一题/bin
06_6999_林浩强/第一题/src
06_6999_林浩强/第二题/bin
06_6999_林浩强/第二题/src
06_6999_林浩强/第一题
06_6999_林浩强/第二题
06_6999_林浩强
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.