Receive the software engineering work, face the topic "...". I first drew up a general idea, as well as some key functions. The idea uses loops to generate 30 arithmetic formulas, and calculates answers, storing answers, and using loops to show the answers to 30 questions.
The key function, I think, is the generation of random positive integers. Considering this, I decided to use JavaScript to write my program, one is because I recently learned JS, the second is because C and C + + a little strange, and then JavaScript has math.random this function, although it can only produce a random number between 0 and 1. After deciding on the language, I analyzed the next topic, considering the problem involving true scores, I divided the program into two parts: integer and True fraction, using a random number random call, the answer is stored in the array, one call display. Each system I wrote the arithmetic function separately. The biggest problem in the process is the storage of fractional answers, but fortunately the JS array can store characters directly. So the problem is solved.
During the commissioning process, we felt deeply about the shortcomings of dreamwaver and the problems caused by the habit of programming. In advance, I listed the required functions and the main body on the machine, the program directly out, the result of a small bug wasted a long time, it is the case after the ":" The Fight became ";" and dreamwaver default font these two difficult differences, so to learn from the future attention.
The above is the student's own development process, laughed at.
The development process of the first operation program of software engineering