计应193第四小组王婕

PSP阶段

橙子的所花时间百分比

工程师所花时间百分比

计划

10

10

明确相关需求和其他因素

10

10

开发

87

85

需求分析

11

8

生成设计文档

10

12

设计审复(和同事审核设计文档)

12

7

代码规范(为目前开发指定合适的规范)

8

3

具体设计

15

13

具体编码

24

22

代码复审

10

10

报告

7

5

测试报告

3

3

计算工作量

2

1

事后总结,并提出过程改进计划

2

1

加减乘除运算

1.计划

加减乘除运算

2.生成设计文档

创建一个接口,写一个运算方法,再写一个类实现接口,再分别写加减乘除类,然后再创建一个测试类进行测试

3.设计复审

4.代码规范

格局清晰明了

5.具体设计

6.具体代码

package edu.cn.hnzj;

public interface TwoNumbers {

   public int yunsuan(int m,int n);

}

public class Algorithm implements TwoNumbers{

   public int yunsuan(int m,int n) {

          return 0;

   }

}

public class Plus extends Algorithm{

   public int yunsuan(int m,int n) {

          return m+n;  

   }

}

public class Minus extends Algorithm{

   public int yunsuan(int m,int n) {

          return m-n;

   }

}

public class Multiply extends Algorithm{

   public int yunsuan(int m,int n) {

          return m*n;

   }

}

public class Division extends Algorithm{

   public int yunsuan(int m,int n) {

          return m/n;    

}

}

7.代码复审

8.测试

9.事后总结

10.提出过程改进

 

posted @ 2021-04-10 19:37  雾岛风起时  阅读(57)  评论(0)    收藏  举报