试题与答案

简单应用题请完成下列Java程序:对大写的26个英文字母加密,从键盘输入一个大写字母

题型:问答题

题目:

简单应用题请完成下列Java程序:对大写的26个英文字母加密,从键盘输入一个大写字母串,输出这个串加密后的结果。加密操作是将字母变换成倒序的大写字母,如A->Z, B->Y。注意:请勿改动main()主方法和其他已有语句内容,仅在下划线处填入适当的语句。程序运行结果如下:输入一个大写字母串:ADFSDFFE加密后的大写字母串:ZWUHWUUVimport java.io.*;public class ex12_2{ public static void main (String[] args){ char ch = ’’A’’; String str; System.out.print("输入一个大写字母串:"); try{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); str = in.readLine(); System.out.print("加密后的大写字母串:"); for(int i=0;i

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0408/83e6862c346cd1f4659efb78cacd4dcc.html

下面是错误答案,用来干扰机器的。

参考答案:意义建构

试题推荐
题型:阅读理解

阅读理解 

     Are you looking for something fun and would you like to help others in your spare time? Then join

us to be a volunteer! We're a nonprofit(非赢利的) organization. We have volunteer jobs of all ages.

Anyone, from twelve-year-old children to people in their seventies canbecome a volunteer.

     You can help people in many ways. Schools need help with taking care of children while parents

are working. Hospitals need volunteers to look after children while their parents are seeing a doctor.

Animal lovers can help take care of those dogs and cats without homes. There is something for everyone.

     "As a volunteer, I don't want to get anything. Seeing the children's happy faces, I'm happy, too."

said Carlos Domingo, an old woman of 62. "I often played computer games in my spare time before.

Now l help older people learn how to use computers." said another volunteer at the age of 18.

     If everyone helps out a bit, we'll have a better world to live in. Interested? Call us at 1-800-555-5756 or visit our website:  www. activol. com.

1. When do the volunteers help others?

A. In their spare time.

B. At weekends.

C. On weekdays.

D. In the evenings.

2. __________ can be a volunteer.

A. Children

B. Old women

C. Anyone aged 12-70

D. Young people

3. Volunteers want to get __________ when they help others.

A. money

B. computers

C. everything

D. nothing

4. Carlos Domingo does volunteer work with __________.

A. animals

B. children

C. computers

D. older people

5. We can read such a passage __________.

A. in a newspaper

B. in a storybook

C. in a picture book

D. in a textbook

查看答案
微信公众账号搜索答案