PSP2.1 | Personal Software Process Stages | 预估耗时(分钟) | 实际耗时(分钟) |
---|---|---|---|
Planning | 计划 | 600 | 760 |
? Estimate | ? 估计这个任务需要多少时间 | 600 | 760 |
Development | 开发 | 300 | 360 |
? Analysis | ? 需求分析 (包括学习新技术) | 60 | 60 |
? Design Spec | ? 生成设计文档 | 30 | 30 |
? Design Review | ? 设计复审 | 21 | 21 |
? Coding Standard | ? 代码规范 (为目前的开发制定合适的规范) | 30 | 30 |
? Design | ? 具体设计 | 20 | 20 |
? Coding | ? 具体编码 | 300 | 360 |
? Code Review | ? 代码复审 | 60 | 60 |
? Test | ? 测试(自我测试,修改代码,提交修改) | 120 | 120 |
Reporting | 报告 | 20 | 30 |
? Test Repor | ? 测试报告 | 20 | 30 |
? Size Measurement | ? 计算工作量 | 10 | 10 |
? Postmortem & Process Improvement Plan | ? 事后总结, 并提出过程改进计划 | 0 | 20 |
合计 | 760 |
我通过百度的方式了解到,小学一年级数学有如下的几个特点:
经过分析,我认为,这个程序应当:
说明你如何设计这个程序
比如:
写出具体实现的步骤
比如:
要考虑多种情况,如输入参数的大小问题
比如:
-由于创建out.txt的代码位置打错,导致程序无法正常运行,后更换其位置可以正常运行。
for (int i = 1; i <= n; i++) {
//生成两个随机数
x = (int)(Math.random()*100+1);
y = (int)(Math.random()*100+1);
f = (int)(Math.random()*2);
//判断加法和减法 0为加法
if(f==0) {
//生成减法
System.out.println("("+ i +") " + x +" - "+ y + " =");
String str1 = ("("+ i +") " + x +" - "+ y + " = " + (x-y));
//写入数据
out.writeUTF(str1);
// System.out.println(str);
}
else {
//生成加法
System.out.println("("+ i +") " + x +" + "+ y + " =");
String str1 = ("("+ i +") " + x +" + "+ y + " = " + (x+y));
//写入数据
out.writeUTF(str1);
// System.out.println(str);
}
}
out.close();
请给出本次实验使用的代码规范:
小学一年级数学加减计算题
请输入题目数量:
2
(1) 63 - 8 =
(2) 53 + 74 =
------------------答案------------------
(1) 63 - 8 = 55
(2) 53 + 74 = 127
请总结过程中的教训和经验,思考
原文:https://www.cnblogs.com/211606353fang/p/9631795.html