-
编写一个java应用程序。用户从键盘输入一个1
编写一个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) proced
- 2023-05-18 17:45:02下载
- 积分:1
-
The source code accompanying the book "Physics for Game Programmers" by Grant Pa...
The source code accompanying the book "Physics for Game Programmers" by Grant Palmer (2005)
Source code in Java,C# and C++ (C++ version has no GUI)
- 2022-06-29 05:40:09下载
- 积分:1
-
一个汉诺塔问题的模拟程序,包含图形模拟和过程同步显示(华南农业大学信息学院计算机系)....
一个汉诺塔问题的模拟程序,包含图形模拟和过程同步显示(华南农业大学信息学院计算机系).-one of the simulation program, including graphics simulation and process synchronization Display (South China Agricultural University, Department of Computer Information Institute).
- 2022-03-10 17:40:38下载
- 积分:1
-
一个简单的java记事本,有什么不足之处还希望多多指教。
一个简单的java记事本,有什么不足之处还希望多多指教。-A simple java Notepad, to see what the inadequacies also hope that the exhibitions.
- 2022-04-15 04:39:07下载
- 积分:1
-
聚光灯效果.HTML
聚光灯效果.HTML-spotlight effects. HTML
- 2022-03-24 03:41:09下载
- 积分:1
-
java source code book, detailing the process of its use java, it is worth view
java书籍源代码,详细介绍java其使用过程,值得查看-java source code book, detailing the process of its use java, it is worth view
- 2022-03-17 16:33:14下载
- 积分:1
-
thinking in java
随书代码 上面有书中的大部分代码,但是上面不是按照书中的章节分布的大家自己找找吧!-thinking in java
- 2022-02-06 15:16:37下载
- 积分:1
-
eclipse的插件源码
eclipse的插件源码-eclipse plug-source
- 2022-01-25 21:55:16下载
- 积分:1
-
分页类,包括中文和英文及其他语言种类,便于二次开发及商业开发,...
分页类,包括中文和英文及其他语言种类,便于二次开发及商业开发,-Page categories, including Chinese and English and other languages for the secondary development and commercial development,
- 2022-04-19 05:11:39下载
- 积分:1
-
Derby database can be used to connect a database offline.These plugins can be us...
Derby database can be used to connect a database offline.These plugins can be used in Eclipse to connect DB offline
- 2023-01-20 04:00:04下载
- 积分:1