怎么样编写这个程序?谢谢大哥大姐了。跪求!!!!!!!!!!!!

[复制链接]
查看11 | 回复2 | 2010-11-10 06:14:17 | 显示全部楼层 |阅读模式
Your task is to develop an application that interactively trains an elementary school student learn Math. The program should ask the student whether h/she wants a question in addition, subtraction or multiplication. Then it should generate the corresponding question with random numbers. It should check the answer given by the student and indicate if it is correct or wrong. If the student doesn’t get the answer in 3 attempts, it should give the answer and ask the next question. The program should repeat this until quit. At the end, the program should print the result statistics.
Use positive integers from 1 to 100 for multiplication, and integers from -1000 to +1000 for addition and subtraction.
A sample screen dialog is given below. You don’t have to use the exact wordings or format as shown below. Feel free to improvise – however, the program should have all the components indicated.
(NOTE: Addition, subtraction and multiplication only).
Welcome to the Math Wizard
What do you want to do? (Enter 1 for addition, 2 for subtraction, 3 for multiplication, 0 to quit): 3
What is 80 times 4?
248
Wrong. Try again.
300
Wrong. Try again.
320
Correct!
Next question? (1 for addition, 2 for subtraction, 3 for multiplication, 0 to quit): 2
What is 40 minus 12?
28
Correct!
Next question? (1 for addition, 2 for subtraction, 3 for multiplication, 0 to quit): 0
OK.
Results:Question Attempts

1
3

2
1
Bye!
怎样编写这个程序用java,我是个初学者,我实在做不出来了。大哥大姐们帮帮小弟吧!

回复

使用道具 举报

千问 | 2010-11-10 06:14:17 | 显示全部楼层
你的任务是开发一个应用程序,交互式火车一小学生学习数学。该方案应要求学生是否小时/她想要一个加法,减法或乘法的问题。然后,它应该产生的随机数与相应的问题。它应该检查由学生给出的答案,并指出,如果它是正确或错误。如果学生在没有得到3次答案,应给予答复,并要求下一个问题。该方案应重复,直到退出此。最后,该程序应该打印的结果统计。使用从1到100的正整数乘法和整数从-1000到1000的加法和减法。一个示例屏幕对话框如下。您不必使用确切的字眼或格式如下所示。随意即兴 - 然而,该方案应当把所有的组件说明。(注:加,减法和乘法只)。欢迎来到数学向导你想干什么? (输入另外1,2减,乘3,0退出):3什么是80倍4?248
回复

使用道具 举报

千问 | 2010-11-10 06:14:17 | 显示全部楼层
100分我帮你写...20太少...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行