Write a program that will help elementary school pupils practice math
2013-06-03 18:51
477 查看
Write a program that will help elementary school pupils practice math.
a) The program will first ask the user for his/her ID number (including two letters & 4 digits), e.g.
Please input your four digit ID no: AB1234
The program should have input validation.
Then the program prompts three choices:
(1) Start a test
(2) Check scores
(3) Exit
b) Test: the program will give 10 math problems, e.g.:
12 * 3 = 36
48 + 32 = 80
…
56 / 28 = 2
Note:
i) Pupils will answer each problem before the next one is given.
ii) The problems should include addition, subtraction, multiplication and division. They are randomly generated.
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, record the time used by the student to do the ten problems.
v) Gives a score to each student. Saves this student’s ID, his/her score and the time used into a file named ‘record.txt’.
vi) Print the following information on the screen:
Prob. | Correct Answ. | Ur Answ
c) Check scores: Searches the file ‘record.txt’ and lists all the historical scores for this student, e.g.:
Your previous records are:
AB1234 80 150 seconds
AB1234 50 182 seconds
AB1234 90 98 seconds
You will be marked based on your program’s:
(1) Correctiveness
(2) Readability
(3) Robustness
(4) Conciseness专业程序代写c++程序代写
a) The program will first ask the user for his/her ID number (including two letters & 4 digits), e.g.
Please input your four digit ID no: AB1234
The program should have input validation.
Then the program prompts three choices:
(1) Start a test
(2) Check scores
(3) Exit
b) Test: the program will give 10 math problems, e.g.:
12 * 3 = 36
48 + 32 = 80
…
56 / 28 = 2
Note:
i) Pupils will answer each problem before the next one is given.
ii) The problems should include addition, subtraction, multiplication and division. They are randomly generated.
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, record the time used by the student to do the ten problems.
v) Gives a score to each student. Saves this student’s ID, his/her score and the time used into a file named ‘record.txt’.
vi) Print the following information on the screen:
Prob. | Correct Answ. | Ur Answ
c) Check scores: Searches the file ‘record.txt’ and lists all the historical scores for this student, e.g.:
Your previous records are:
AB1234 80 150 seconds
AB1234 50 182 seconds
AB1234 90 98 seconds
You will be marked based on your program’s:
(1) Correctiveness
(2) Readability
(3) Robustness
(4) Conciseness专业程序代写c++程序代写
相关文章推荐
- Write a program that will help elementary school pupils practice math
- Write a program that will help elementary school pupils practice math
- Write a program that will help elementary school pupils practice math
- Write a program that will help elementary school pupils practice math
- Write a program that will help elementary school pupils practice math
- Description of the default C and C++ libraries that a program will link with when built by using Vis
- Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highes
- 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calc
- Personal Branding: 8 Tips That Will Help You Stand Out
- Write a program that prints its input one word per line.
- 10 harsh truths that will help you grow
- <译文>13 Xcode Tips That Will Help You Conquer Xcode 13个小技巧帮你征服Xcode
- Write a program that gives count of common characters presented in an array of strings..(or array of
- 100+ Google Tricks That Will Save You Time in School
- Write a program that prints the numbers from 1 to 100,but for multiples of three print “Fizz” inste
- Write a program that gives count of common characters presented in an array of strings..(or array of
- The 10 Technologies that Will Help You Stay Employed
- How to Write a Killer Software Testing QA Resume That Will Turn Into an Interview Call
- write a program to produce a truth table.
- Eclipse build error 解决方法The library '*.jar' contains native libraries that will not run on the dev