20194662+ automatically generates four arithmetic problem first edition report

First, the needs analysis

Java or C language used to automatically generate a complete four arithmetic program questions

Second, the functional design

basic skills:

(1) automatically generates four arithmetic operation of Equation 2 number less than 10 100 (+ - * /), operation results are required within 100

Accessibility:

(1) Equation discarding duplicates. = 2 + 3 + 3 = 2 and Equation 2 is repeated and 3 + = 3 + 2 = not repeated formula

Number (2) title can be customized

(3) parameters can be controlled

          Whether to include multiplication and division

          Controllable range values ​​of the operands (e.g., operands within 100 or within 1000)

          Whether operands containing negative    

  (4) generating operation to an external file title stored in result.txt

Third, the design and implementation

(1) using the c language and libraries

(2) use for switch statement

 (3) Create a file result.txt

 (4) input and output functions

 

Fourth, the test run

 

V. snippet

Six, psp

Seven summary

A weak grasp of their own knowledge, did not think so easy to operate, and to complete the next several revisions, the need to enhance learning.

Guess you like

Origin www.cnblogs.com/zjm1230/p/11528656.html