WC individual project

A, Github project Address:

 https://github.com/JakeYi/WC

Two, PSP form

PSP2.1 Personal Software Process Stages Estimated time consuming (minutes) The actual time-consuming (minutes)
Planning plan 28 25
Estimate Estimate how much time this task requires 12 13
Development Develop 580 460
Analysis demand analysis 140 170
Design Spec Generate design documents 30 60
Design Review Design Review 50 65
Coding Standard Code Specification 20 40
Design Specific design 60 40
Coding Specific coding 470 470
Code Review Code Review 30 20
Test Test (self-test, modify the code, submit modifications) 60 120
Reporting report 60 120
Test Report testing report 20 30
Size Measurement Computing workload 10 15
Postmortem & Process Improvement Plan Later summarized, and process improvement plan 120 60
total   1690 1708

 

Third, the problem-solving ideas

Using the Java language design three modules, respectively, to achieve the following functions:

    1. The main class common, accept incoming parameters in the main class main method and classified according to the parameters discussed the use of function each class static methods to achieve functional, or call the GUI classes open graphical interface;
    2. MainFrm classes, inheritance JFrame class that implements a graphical interface program, through the button to select the file and call the function of each class static method statistical information;
    3. FileProfessorf class that contains static methods in each class, respectively, to achieve statistical information function.
    4.    

Fourth, design and implementation

  1. Count the number of characters
  2. Count the number of rows
  3. Count the number of words
  4. Statistical empty rows
  5. Statistics comments
  6. Count the number of lines of code
  7. Recursive directory access to all sub-folders, and log file path

Fifth, run the test

1. Test empty file

 

 

 2. Test a character file

 

 

 3. Test a word file

 

 

 4. Return more complex data (line / space lines / comment lines).

 

 

 Eligible file 5. Process directories recursively.

 

 

 6. graphical interface

 

a. the number of characters

 

 

 

 

 b. the number of words

 

 

 

c. The number of rows

 

 

 4.-a

 

 

 

VI project summary

 This weeks learning the software engineering course to learn early in the project development should be prepared needs analysis and design documentation for the overall goal of the project, but in the development process, because the family a little bit in a hurry to leave out, so this individual the rush to complete the project. The reason for the project not only knowledge of software engineering jobs individual projects, and review the java encoding, WC project development, I learned a specific application software engineering knowledge in the actual project development, very grateful to this course.

 

Guess you like

Origin www.cnblogs.com/frankyi/p/11588459.html