-
编写一个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
-
网上书店系统系统能实现用户的注册、登录功能;能够实现商品的查询,订购等功能。该系统基本上具备一个网上商品销售系统应该具备的功能,该设计项目基本上体现了构建一个动...
网上书店系统系统能实现用户的注册、登录功能;能够实现商品的查询,订购等功能。该系统基本上具备一个网上商品销售系统应该具备的功能,该设计项目基本上体现了构建一个动态商务网站所需要的技术。-Online bookstore systems to achieve the user" s registration, the registry function to achieve product inquiries, orders and other functions. Basically, the system has an on-line sales system should have the function, the design reflects the construction of the project is basically a dynamic business website technology needs.
- 2022-02-24 21:58:33下载
- 积分:1
-
JXTA官方例程,语音,视频和文本消息。
jxta官方例程,语音,视频,文字通讯。-jxta official routines, voice, video and text messaging.
- 2022-04-08 10:29:44下载
- 积分:1
-
Menu menu demonstration Example 3
Menu菜单的演示例子3-Menu menu demonstration Example 3
- 2022-02-28 13:33:51下载
- 积分:1
-
利用CORBA的值类型实现的一个分布式程序
利用CORBA的值类型实现的一个分布式程序-use CORBA types realize the value of a distributed programming
- 2023-07-19 10:45:03下载
- 积分:1
-
jbcl.jar这是JBuilder的jar包,在Eclipse编程经常使用…
jbcl.jar这是Jbuilder中的一个jar包,在使用eclipse编程时经常需要把它import进去,网上找它的人很多,可是几乎在互联网上下不到,许多人在论坛发帖跪求都没有人回复,我费了九牛二虎之力才找到它,发上来,解决大家难题!-jbcl.jar This is Jbuilder a jar package, in the use of eclipse Programming often need to import it into the Internet to find it a lot, but not up and down almost on the Internet, many people posting in the forum are not跪求people back, I took effort to find it, the table to resolve the problem everyone!
- 2022-05-06 00:17:27下载
- 积分:1
-
简化DFA
简化DFA-对于一确定型自动机M=(K,Σ,Δ,s, F),设p,q ∈K,若对于任一字符串w,由p沿w可达某终点当且仅当由q沿w可达某终点,则说p,q等价,记为p≡q。而且,≡的一个等价类恰好就是状态数最少的确定型自动机的一个状态-Simplify the DFA-for a defined automaton M = (K, Σ, Δ, s, F), set p, q ∈ K, if for any string w, from p along w up to a certain destination if and only if along w from q up to a certain destination, then that p, q equivalent is recorded as p ≡ q. Moreover, ≡ an equivalence class is just the least number of states determine the type of a state automaton
- 2023-06-09 11:45:03下载
- 积分:1
-
用JAVA做的小游戏"贪吃蛇"
用JAVA做的小游戏"贪吃蛇"-do with JAVA small game "Snake"
- 2022-05-16 08:32:13下载
- 积分:1
-
本人写的一个简单VCD租赁系统,需JDK1.5.0编译,main()函数在maininterface.java文件中。...
本人写的一个简单VCD租赁系统,需JDK1.5.0编译,main()函数在maininterface.java文件中。-I wrote a simple VCD rental system, the need JDK1.5.0 compiler, main () function in maininterface.java document.
- 2023-05-20 14:05:03下载
- 积分:1
-
适合于课程设计和毕业设计的库存管理系统…
库存管理系统,适合课程设计和毕业设计参考。-inventory management system suitable for curriculum design and graduation design.
- 2023-08-17 16:20:03下载
- 积分:1