谢谢了,看看怎么作
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
----------------解决方案--------------------------------------------------------
你搞什么吗?说中文好不好!
----------------解决方案--------------------------------------------------------
是啊。中文的好吗?都看不懂。怎么做呀
----------------解决方案--------------------------------------------------------
chinese is well
----------------解决方案--------------------------------------------------------