| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 644 人关注过本帖
标题:复杂c语言,求助大仙!(展现你的实力吧)
只看楼主 加入收藏
garnett1928
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-12-23
收藏
 问题点数:0 回复次数:1 
复杂c语言,求助大仙!(展现你的实力吧)

大仙,留下你的智慧:
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

搜索更多相关主题的帖子: c语言 实力 展现 
2005-12-23 18:45
maoguoqing
Rank: 6Rank: 6
来 自:重庆
等 级:贵宾
威 望:28
帖 子:2980
专家分:19
注 册:2005-12-5
收藏
得分:0 
不就是一个产生随机数的问题!
也没什么难度,但是我看英文好吃力哦!

天行健,君子以自强不息!!QQ:68660681
2005-12-24 11:02
快速回复:复杂c语言,求助大仙!(展现你的实力吧)
数据加载中...
 
   



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

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