项目 | 内容 |
该做业所属课程 | 任课教师博主主页连接 |
做业要求 | 实验四 软件工程结队项目 |
课程学习目标 | 熟悉软件开发总体流程,提高自身能力 |
本次做业在哪一个具体方面帮助咱们实现目标 | 第一次体验一个完整的工程 |
项目源码 | (https://github.com/Z-zt/shiyan4) |
for(Map.Entry<String, Integer> map : list) { if(num <= sb.length()) { bw.write("出现次数第" + num + "的单词为:" + map.getKey() + ",出现频率为" + map.getValue() + "次"); bw.newLine(); System.out.println(map.getKey() + ":" + map.getValue()); num++; } else break; } bw.write("耗时:" + (System.currentTimeMillis() - t1) + "ms"); br.close(); bw.close(); System.out.println("耗时:" + (System.currentTimeMillis() - t1) + "ms"); } catch (FileNotFoundException e) { System.out.println("找不到指定文件!"); } catch (IOException e) { System.out.println("文件读取错误!"); }
public static void main(String[] args) { BufferedReader br = null; int line = 0; String str = ""; StringBuffer sb = new StringBuffer(); try { br = new BufferedReader(new FileReader("src/file.txt")); while ((str = br.readLine()) != null) { sb.append(str); ++line; } System.out.println("\n文件行数: " + line); TreeMap<Character, Integer> tm = Pross(sb.toString()); System.out.println("\n字符统计结果为:" + tm); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if (br != null) { try { br.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
任务内容 | 计划共完成须要的时间(min) | 实际完成须要的时间(min) |
---|---|---|
计划 | 15 | 20 |
估计这个任务须要多少时间,并规划大体工做步骤 | 20 | 15 |
开发 | 300 | 350 |
需求分析 (包括学习新技术) | 200 | 220 |
生成设计文档 | 10 | 15 |
设计复审 (和同事审核设计文档) | 10 | 10 |
代码规范 (为目前的开发制定合适的规范) | 10 | 10 |
具体设计 | 40 | 35 |
具体设编码 | 200 | 300 |
代码复审 | 15 | 20 |
测试(自我测试,修改代码,提交修改) | 40 | 35 |
报告 | 20 | 30 |
测试报告 | 8 | 8 |
具体设计 | 40 | 35 |
计算工做量 | 15 | 20 |
过后总结 ,并提出过程改进计划 | 10 | 15 |