1.计划

加减乘除四则运算

2,生成设计文档

  创建一个接口,包含一个运算方法,再创建一个类实现接口,再分别创建加减乘除类继承主类重写运算方法,然后再创建一个测试类分别测试。

3,设计复审

4,代码规范

 尽量使用英文单词 清晰明了

5,具体设计

6.具体编码 

package hnzj;

public interface TwoNumber {

   public int yunsuan(int a,int b);

}

public class Algorithm implements TwoNumber{

   public int yunsuan(int a,int b) {

          return 0;

   }

}//加法运算

public class Add extends Algorithm{

   public int yunsuan(int a,int b) {

          return a+b;  

   }

}//减法运算

public class Reduce extends Algorithm{

   public int yunsuan(int a,int b) {

          return a-b;

   }

}//乘法运算

public class Cheng extends Algorithm{

   public int yunsuan(int a,int b) {

          return a*b;

   }

}//除法运算

public class Chu extends Algorithm{

   public int yunsuan(int a,int b) {

          return a/b;     }

}

7.代码复审

8.测试

9.事后总结

10.提出过程改进计划

小组讨论提出计划总结 

PSP阶段 实际花费时间百分比 估计花费时间百分比
计划 8 6
明确需求和其他相关因素,估计每个阶段的时间成本 8 6
开发 84 86
需求分析 7 8
生成设计文档 4 8
设计复审(和同事审核设计文档) 4 4
代码规范(为目前的开发制定合适的规范) 2 3
具体设计 11 13
具体代码 31 30
代码复审 13 10
测试(自测,修改代码,提交修改) 12 10
报告 8 8
测试报告 3 3
计算工作量 2 2
事后总结,并提出过程改进计划 3 3
posted on 2021-04-10 16:58  第三学习小组  阅读(135)  评论(0)    收藏  举报