表1 缺陷记录日志
学生 李婷婷 日期 2017/12/02
教员 王建民 程序号 02
日期 | 编号 | 类型 | 引入阶段 | 排除阶段 | 修复阶段 | 修复缺陷 |
2017/11/30 | 1 | 高新技术网站搭建 | 编码 | 编译 | 180min |
|
功能太多,未全部实现。 | ||||||
| 2 | 修改程序 | 编码 | 编译 | 30min |
|
将部分界面修改,对于程序运行过程的异常,进行排查。 | ||||||
| 3 | 最后修改 | 编码 | 编译 | 10min |
|
将在截止时间内可修改的部分做修改。 |
表2 时间记录日志
学生 李婷婷 日期 2017/12/02
教师 王建民 课程 软件工程概论
日期 | 开始时间 | 结束时间 | 中断时间 | 净时间 | 活动 | 备注 |
2017/11/30 | 20:00 | 22:00 | 10min | 120min | 阅读《构建之法》,中场休息 |
|
| 14:00 | 18:00 | 30min | 220min | Java期末考试 |
|
| 18:30 | 20:00 | 10min | 90min | 修改考试程序,最终未果。 |
|
二、四则运算源代码:
import java.util.Random;import java.util.Scanner;public class Size { public static void main(String[] args) { int k = 0; Scanner in = new Scanner(System.in); System.out.println("请输入要生成的题目数:"); int j=in.nextInt(); for(int i=0;i=1||t<=4) { if(t==1) {//加法 System.out.print(a+"+"+b+"="); int c = in.nextInt(); if(a+b==c) { System.out.println(" true"); k++; } else { System.out.println(" false"); } } else if(t==2) {//减法 System.out.print(a+"-"+b+"="); int c = in.nextInt(); if(a-b==c) { System.out.println(" true"); k++; } else { System.out.println(" false"); } } else {//除法 System.out.print(a+"/"+b+"="); int c = in.nextInt(); if(a/b==c) { System.out.println(" true"); k++; } else { System.out.println(" false"); } } } } System.out.println("您一共答对了"+k+"道题"); } public static int random() {//随机生成两个0-100的整数 int a; Random random=new Random(); a=(int) ( random.nextInt(100)); return a; } public static int character() {//随机生成运算符 int b; Random random=new Random(); b=(int) ( random.nextInt(4)); return b; }}