项目 | 内容 |
这个做业属于哪一个课程? | 2016级计算机科学与工程学院(西北师范大学) |
这个做业的要求在哪里? | 实验二 软件工程我的项目 |
我在这个课程的目标是? | 按时完成老师给的任务,复习JAVA相关知识,掌握软件项目我的开发流程,掌握Githup上发布软件项目的操做方法 |
Github相关代码 | 连接 |
/*从指定文件中读入单词,处理文件中的单词,对于数字,符号等非字母过滤 */ public class WordCount { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new FileReader("F:/count/wordcount.txt")); List<String> lists = new ArrayList<String>(); //存储过滤后单词的列表 String readLine = null; while((readLine = br.readLine()) != null){ String[] wordsArr1 = readLine.split("[^a-zA-Z]"); //过滤出只含有字母的 for (String word : wordsArr1) { if(word.length() != 0){ //去除长度为0的行 lists.add(word); } } } - ###代码片断二:
/*单词的词频统计*/ for (String li : lists) { if(wordsCount.get(li) != null){ wordsCount.put(li,wordsCount.get(li) + 1); }else{ wordsCount.put(li,1); } }
/按value的大小进行排序/
ArrayList<Map.Entry<String,Integer>> list = new ArrayList<Map.Entry<String,Integer>>(oldmap.entrySet());html
Collections.sort(list,new Comparator<Map.Entry<String,Integer>>(){ @Override public int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) { return o2.getValue() - o1.getValue(); //降序 } });
本次项目预计要实现的功能比较全面,可是因为编程能力不足,有些功能还没有实现。在本次项目中,虽然实现了部分功能,但在同时也复习了JAVA的相关知识,基本掌握了软件项目我的开发 流程,也学习了Githup上发布软件项目的操做方法。慢慢理解,理论加实践的学习方法,在从此的学习中,去克服编程方面的弱点,提升编程能力。git
PSP是卡耐基梅隆大学(CMU)的专家们针对软件工程师所提出的一套模型:Personal Software Process (PSP, 我的开发流程,或称个体软件过程)。github
PSP2.1 | 任务内容 | 计划共完成须要的时间(min) | 实际完成须要的时间(min) |
Planning | 计划 | 10 | 18 |
Estimate | 估计这个任务须要多少时间 | 8 | |
Development | 开发 | 100 | 120 |
Analysis | 需求分析(包括学习新技术) | 10 | 10 |
Design Spec | 生成设计文档 | 5 | 8 |
Design Review | 设计复审(和同事审核设计文档) | 4 | 6 |
Coding Standard | 代码规范(为目前的开发制定合适的规范) | 10 | 18 |
Design | 具体设计 | 10 | 12 |
Coding | 具体编码 | 180 | 200 |
Code Review | 代码复审 | 7 | 9 |
Test | 测试(自我测试,修改代码,提交修改) | 20 | 40 |
Reporting | 报告 | 20 | 20 |
Test Report | 测试报告 | 10 | 5 |
Size Measurement | 计算工做量 | 5 | 3 |
Postmortem & Process Improvement Plan | 过后总结,并提出过程改进计划 | 3 | 3 |