Development Blog

To see the whole version, go to the End and see HTML version on Github.com.

Contents

Development BlogContentsPSP FormIdeas of Problem-solvingDesign and Implement ProcessesCode Descriptionmain.pycommon.pyspecific_c.pyUnit TestScreenshots and DescriptionTest DataResultCoverage OptimizationPerformance TestingSummaryEnd

PSP Form

Top

Process StagesEstimated Time(min)Actual Time(min)
Analyze Problem105
Planning Development105
Modelling Project3015
Design Basic Framework2020
Design & Develop Assistant Tools30120
Review Assistant Tools1030
Develop Prototype working on 1st Level3040
Review & Fortify Program1030
Design 2nd Level Program3040
Develop & Review 2nd Level Program30200
Design 3rd Level Program3020
Design 4th Level Program4080
Develop & Review 3rd & 4th Level Program80200
Refine Details205
Final Test2010
Reporting4070
Summarizing3010
Total Time470900

Ideas of Problem-solving

Top

Problem is given in four level and that's good for Incremental model.

Idea of develop solution:

  1. Break problem into parts of tasks and queue them.
  2. Think sub solutions for tasks.
  3. Code and implement the solutions.
  4. Test

Design and Implement Processes

Top

Solution steps:

  1. Determine file type and check
  2. Read corresponding keywords of the language
  3. Read the file content
  4. Solve for 1st level
  5. Solve for 2nd level
  6. Solve for 3rd&4th level
beginning_of_running_any_solution
generate info
give info
give info
find 'switch', iterate
find 'if/else', iterate
collect
collect
collect
File_Validation
Read_Keywords
Read_File_Content
sol.1
1st_Level
2nd_Level
3rd_Level
4th_Level
sol.2
sol.3
Count_Keywords
Give_Answer_of_1st_Level
Iterate_and_Calculate_for_sol.2
Iterate_and_Calculate_for_sol.3
Give_Answers_of_2nd_Level
Give_Answers_of_3rd&4th_Level
Function2
Count_'case'
Function3
Count_'else_if/else'
Completed_Answer

Code Description

Top

My project used many to assist the development process. But those do nothing with problem-solving, so I will not explain them here.

Here is key codes and their explanation:

main.py

Top

This is the entrance of whole program. This file contains and leads to the rest.

common.py

Top

This file contains the common parts of codes, i.e. the public codes for all modules.

specific_c.py

Top

Contains part of solutions for c language.

Unit Test

Top

my_unit_test.py

Screenshots and Description

Top

Test Data

Top

Test file, , is copied from website. See the website at the End.

Result

Top

Picture shown below tells that of 4th level, i.e. the ultimate requirement. It goes to expectation.

Snipaste_2022-10-28_04-29-19

Snipaste_2022-10-28_06-10-41

Coverage Optimization

Top

Comment useless codes.

Snipaste_2022-10-28_08-14-04.png

% ->%

Performance Testing

Top

Snipaste_2022-10-28_06-53-52

Summary

Top

In this program, I used lots of new knowledge. Software Engineering is truly a systematic engineering. Methodology is really important.

End

Top

The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZU202201
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/608734907
The Aim of This AssignmentNote the development processes.
MU STU ID and FZU STU ID20123850_832001217

Project on Github.com: https://github.com/LiuJiewenTT/ee308fz_lab1

URL on github.com of this passage(download): https://liujiewentt.github.io/ee308fz_lab1/development%20blog.md
URL on github.com of this passage(view with Github md): https://github.com/LiuJiewenTT/ee308fz_lab1/tree/main/development%20blog.md

URL on github.com of this passage(view as html): https://liujiewentt.github.io/ee308fz_lab1/development%20blog.html
URL on csdn.net of this passage(view as html): https://bbs.csdn.net/topics/608838406