paired staff
- Hu Zhitao: Infix to suffix and calculation of suffix expressions
- Peng Lin: Fraction-related procedures and solving small problems
Dayue Lu: Topic Generation and Compilation of Driver Classes
demand analysis
Target
1. Automatically generate questions
Can be used independently (can realize the function of writing test classes to generate questions independently)
Different levels of questions can be generated, similar to:
Level 1 questions: 2 + 5 =; two numbers like
10 - 5 =
, a question for an operator
2. Problem operation (judgment problem)
可独立使用
实现中缀表达式转为后缀表达式并计算
判断用户答题正误,并输出正确结果
3. Support True Score
可独立使用
实现分数算式的计算
3. De-duplication of topics (expansion requirements, extra points)
可独立使用
实现对自动生成表达式的去重:如下
若生成:2 + 5 =;
5 + 2 =
为同一题目
analyze
- It is necessary to design an empty stack, and rely on the stack to perform infix to suffix and suffix calculations
- A class is needed to generate questions, and the class must have a method for grading the questions
- Fraction-related methods are required to implement fractional calculations
A driver class is required to implement all the above functions
Subsequent expansion
- For the score has not been fully realized, make up next week
The deduplication of the topic has not been realized, and it will be added next week.
Design ideas
- First compile a StringToArithmetic class, implement infix to suffix and calculate it
- Create a score class again to realize the calculation of the score
- Then create a question generation class, and randomly generate questions by grade
Finally, create the main class to realize the functions of user answering, judging right and wrong, etc.
UML
PSP2.1 Personal Software Process Stages Estimated time (minutes) Actual time (minutes)
Planning 60 65
Estimate Estimated how much time this task will take 3 2
Development 2000 3000
Analysis Requirements analysis (including learning new technologies) 350 300
Coding Standard Code Specifications (make appropriate specifications for current development) 60 10
Design UML Design Project UML Class Diagram 60 60
Coding Specific Coding 1500 2000
Code Review Code Review 30 30
Test Test (self-test, modify code, submit modification) 300 300
Size Measurement Calculate workload (actual time) 2 2
Postmortem & Process Improvement Plan Summarize after the fact, and propose a process improvement plan 30 10
Total 4395 5229