HNU_ primary and secondary school mathematics examination paper automatically generated program (individual events) a brief analysis

I. Introduction

 

  First of all , here my special thanks to pair programming partner HnuLyx , he and I are very different on the algorithm and design ideas, personal item projects in peer assessment and put forward many good suggestions for my project, so at the same time I recognize their own deficiencies, and learned many places previously did not pay attention. Here attach links , easy to read later.

  Secondly , I have to make some comments on HnuLyx personal items found inadequate internal Meanwhile, learning strengths, learn from each other.

 

Second, test and evaluation

 

1.  Black Box Testing

  After get the project file, I first had black box testing , programming experience from running.

  (1) Advantage 1 : interface design is better (is where I want to learn), users experience a sense will be modest upgrade , easy to understand, easy to operate, subject correctly;

     1 disadvantage : square "^ 2" with "²" (Alt + 0178 play the keyboard can be used);

           

   (2)  Once the files have been created folder delete, display an error;

      2 drawback : it is recommended to make a folder creation, mkdir () function can solve this problem, you can use to large-volume users, save a lot of unnecessary operations create folders;

      

 

    

  ( 3) disadvantages 3 : description does not match with the proposed changes, obviously exit the current user, but return to the previous screen, you need to optimize.

    (Although it has been achieved quit functional requirements, but also the reasonableness of the use to consider it, but do not fall short slightly ~)

    

  (4) 2 advantages : high data fault tolerance, an error will be prompted to enter and re-enter available.

    

 

 

  Above , to the entire contents of the black box, functional, and comfortable interface.

 

2. white-box testing

 

  For white-box testing , HnuLyx I spent an afternoon with the two sides to exchange code, and discussion.

  After his explanation, I have a clear understanding of the structure and inner workings of the system, understand how things inside the box and inside the works, thereby taking into account the test case, found that the internal strengths and weaknesses.

  (1) Advantage 3 : On the whole, skim through the code first, I will clearly feel, good HnuLyx code modular design, a function to implement a function, which greatly enhanced the code logic, readability;

     (Although I also have to write some function, but in function of architecture, and he may be a little less, it is not particularly clear)

    

   (2) the advantage of 4 : registration data stored in the file;

     (In fact, by knowing the code after the discovery, HnuLyx order to improve the program's scalability, will txt file, each time a query login user data storage.

     If you expand the program in the future, this will bring great convenience. )

    

 

     

 

 

  (3) shortcomings of 4 : understand the algorithm formula generated after the program, after several tests, I found a problem, although the subject needs to meet the requirements, but can not be completely random topics, such as:

        Each operand is a left parenthesis, for example: * 7 (8+ (9 + 1)) + 5 * 7 could not be generated as ((8 + 9) +1) + 5.

    (Right parenthesis restricted by the left parenthesis, up to five operands demand , the right bracket up to 3:. A + (B + ( C + (D + E)))) too much data here, show screenshots inconvenience, Sorry.

  (4) advantages 5 : HnuLyx in programming, in addition to considering the reasonableness of his architecture, but also takes into account the performance issues of the program, part of the code has been optimized for, and improve program performance.

        E.g., by getchar (), CIN, comparing three performance scanf give getchar () of the maximum efficiency, and to be invoked for future input efficiency when large amounts of data re-investigation.

  

  Above , the entire contents of the white box. We appreciate your patience HnuLyx students to explain again.

 

Third, a few simple

  In the introduction to the learning process of software engineering, I began to have a sense of a profession: personal projects, pair programming, team project. Gradually, gradually, we will gradually become truly have the ability to play the Chinese youth programmers in learning!
  We will adhere to learn from each other under the guidance of teachers, and common progress.
  I believe that after the pair programming, we will have made great progress!
 

 

Guess you like

Origin www.cnblogs.com/Comet-Fei/p/11553487.html
Recommended