Since this program has inherited the results of last week, I have made the following modifications to the report written in this program:
1. Subject requirements
1. Automatically generate four arithmetic questions for elementary school (addition, subtraction, multiplication, and division)
2. Generate formulas with true fractions.
3. The correct rate of statistical calculation results
2. Demand analysis
1. The program can automatically generate four arithmetic operations.
1. Four judgments are required.
2. To output the questions according to the defined range
3. To generate the true score classification formula
2. After entering the results, you can judge right or wrong.
1. There is a separate class that knows the calculation results in advance.
2. There is a separate class to store existing input results.
3. The two can be compared.
4. The correct rate of statistical output compared with the input result
3. Design ideas
According to the needs analysis
1. Randomly generate four arithmetic problems
2. There is a special input volume
3. The value of the problem can be calculated
4. Compare the input volume and memory value
4. Screenshots
5. Pairing feelings
This experiment is a huge challenge for us, so we refer to other people's code and reluctantly write our own program. In the process, I finally understood a truth, one person is short, and two are long. I believe that through this pairing study, the tacit understanding between me and my teammates will become deeper and deeper, and it will also help us better learn future knowledge and complete tasks that are difficult for one person to complete.
6. Code link
7. PSP
step | time consuming | percentage |
---|---|---|
demand analysis | 40min | 16% |
design | 50min | 20% |
Code | 110min | 44% |
test | 20min | 8% |
analysis Summary | 30min | 12% |