Twinning project Java

Project members: 3117004631 Wei Jianxiong

                3117004623 Lu Yuesheng

A, Github project address: https: //github.com/Yueson-Lu/Myapp1.0

Two, PSP form

PSP2.1 Personal Software Process Stages Estimated time consuming (minutes) The actual time-consuming (minutes)
Planning plan 30 30
· Estimate • Estimate how much time this task requires 30  30
Development Develop  1150  1420
· Analysis · demand analysis   60  60
· Design Spec Generate design documents  60  70
· Design Review · Design Review   60  50
· Coding Standard · Code Specification  50  60
· Design · Specific design  90  100
· Coding · Specific coding (error code contains the first design)  720  960
· Code Review · Code Review  50  60
· Test · Test (self-test, modify the code, submit modifications)  60  60
Reporting report  120  160
· Test Report · testing report  60  90
· Size Measurement · Computing workload  30  30
· Postmortem & Process Improvement Plan · Hindsight, and propose process improvement plan  30  40
total    1300  1710

 

Three , design and implementation process

        After browsing twinning project, we carry out needs analysis of the problem, solve the problem mainly to generate the calculated result, heavy topic sentence and document processing 4 issue. Because the three most frequent operator, i.e. to achieve four unary operations, we enumerate binary operation, and the ternary operator four yuan calculation, then generates a random expression. Because multiplication, division takes precedence over addition and subtraction, we intend to use to enumerate all the ways possible operations enumerated, would not have considered a priority operation, the program only needs to match operational circumstances enumerated, then call the method, computes will be able to obtain the result. Because the operation can not score directly, we intend to randomly generate double argument, then four operations, and then converted to double fractional output, but because of the inversion decimal accuracy will be deleted (e.g., conversion of only 0.33 1/3 ), but could not convert 0.33 1/3. We grew more and more complex heavy topic sentence, we intend to solve the violence, the use of the results of the heavy sentence, if the same results would lay down, look at the follow-up project completion, and then revised and improved. We have solved most of the problems, but we can not score in the form of output subject to the results of the project does not match the requirements, so we're going to reprogram the outset generate scores with scores to four operations.

       We intend to generate a random string parameter generating operator generated subject completed. The difficulty lies in the arithmetic operator, we have found a method of conjugation transfer suffix analytic arithmetic expressions, operators due postfix expression behind the two operands, then the postfix expression parsing computer when only the left right scan, which is only needs to scan forward, rather than back scanning, operators will be met in the middle in front of two operators operator, has operations to the far right of the operator, then the draw operation results a. Because the operand types may contain integers and fractions, then there are three forms of operation: integer and integer arithmetic, fractions, and integer arithmetic, fractions and fractional operations. For convenience of operation, it will be converted to an integer fraction of an integer as a numerator and the denominator is set to 1, so that the three kinds of operators can be turned into a class.

 

Four , Code Description

 

1. The parameters passed from the console task is generated and the generation range

 

 

 

 

 

 

2. The file generation mode, generating a fixed disk position D

Topics and answers to the name of the parameters passed by the calling class myapp

 

 3. generated using randomly generated symbols, figures 1-4 equally divided into four arithmetic symbols

 

 

4. When the denominator unified process uses Euclidean

 

 

 

5. The method of determining stack of processed symbols

 

 

 

Five , the test run

1. Generate a 100 questions:

 

 

 2. Generate 10,000 question:

 

 

 

 

 

 

Six , Project Summary

1. The first attempt two people together for program development, needs analysis together, algorithm design, will find a more efficient and effective than one person alone. In the face of difficulties, work together to find a solution, encourage each other, and common progress.

2. The twinning project, we are the first requirements analysis, design review, and not so meticulous, did not consider the conversion after a good number of basic arithmetic operations, resulting in programming when there is a problem decimal fraction turn, increases the working volume, reduced the efficiency, waste a lot of time. Before the future of programming, should be more meticulous analysis algorithm needs and review everything ready, then specific programming, this can increase programming productivity and save time.

3. As the pre wasted a lot of time, leading to proofread, there are some places we do not have the complete answer file can be improved, such as graphical interface design.

Guess you like

Origin www.cnblogs.com/Yueson/p/11689583.html