20165308 Four arithmetic operations 2

20165308 Four arithmetic operations 2

1. Subject requirements

  • Automatically generate four arithmetic questions for elementary school (addition, subtraction, multiplication, division). Generate formulas with true fractions. Statistical calculation results are correct

2. Demand analysis (the last blog analyzed the specific steps, this time only for adding content analysis)

  • The program can automatically generate four arithmetic operations.

  • Four kinds of judgments are required. The questions should be output according to the defined range. The true score class calculation formula can be generated

  • After entering the results, you can judge whether it is right or wrong.

  • There is a separate class to know the calculation result in advance. There is a separate class to store the existing input results. The two can be compared. The correct rate of comparing the output and the input result can be calculated

3. Design ideas (the previous blog analyzed the specific ideas, this time only the analysis of the new content can be seen from the demand analysis

  • Randomly generate four arithmetic problems with a special input amount to calculate the value of the problem and compare the input amount and memory value

4. Screenshots

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324761266&siteId=291194637