| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 559 人关注过本帖
标题:还是不会阿,帮个忙,万分感谢
只看楼主 加入收藏
garnett1928
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-12-23
收藏
 问题点数:0 回复次数:3 
还是不会阿,帮个忙,万分感谢

谢谢了,看看怎么作
Write a program that will help an elementary school student learn math.

a) The program will first ask the user of his/her ID number:

Please input your four digit ID no: 1234

b) Then the program will give 10 math problems:

12 * 3 = 36

48 + 32 = 80

56 / 28 = 2

Note:

i) The student answers one problem before the next one is given.

ii) Randomly intermixes problems of addition, subtraction, multiplication and division.

iii) Randomly generates numbers for problems. However, must ensure that both the problem and the result are no larger than two digits. The problem and the result should be greater than or equal to zero. The divisor cannot be zero.

iv) After ten problems are finished, give score to this student.

c) Saves this student’s ID and score into a file ‘record.txt’.

d) Searches the file ‘record.txt’ and lists all the historical scores for this student.

Your previous records are:

1234 80

1234 50

1234 90

e) Asks the student redo the problems that were wrong, ONE MORE TIME. If it is still not correct, tell him/her the correct answer.

f) Optional: Also record the time that the student is used to do the work. Also save it to the file ‘record.text’. Display it while display the score and display historical records.

Your previous records are:

1234 80 150 seconds

1234 50 182 seconds

1234 90 98 seconds

Your programming report should include:

(1) Title page

(2) Flowchart to show the algorithm of your program

(3) The C source file

(4) The printout on the screen

You will be marked based on your program’s:

(1) Correctiveness

(2) Readability

(3) Robustness

(4) Conciseness

搜索更多相关主题的帖子: 感谢 
2005-12-24 22:57
guaishou369
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2005-12-18
收藏
得分:0 
你搞什么吗?说中文好不好!

2005-12-25 19:51
shenyanjing
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-12-26
收藏
得分:0 

是啊。中文的好吗?都看不懂。怎么做呀

2005-12-26 14:21
搁浅的考拉
Rank: 1
等 级:新手上路
帖 子:24
专家分:0
注 册:2005-12-23
收藏
得分:0 

chinese is well

2005-12-26 18:30
快速回复:还是不会阿,帮个忙,万分感谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016149 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved