PSP2.1 | Personal Software Process Stages | 预估耗时(分钟) | 实际耗时(分钟) |
---|---|---|---|
Planning | 计划 | 30 | 30 |
? Estimate | ? 估计这个任务需要多少时间 | 30 | 30 |
Development | 开发 | 600 | 560 |
? Analysis | ? 需求分析 (包括学习新技术) | 70 | 70 |
? Design Spec | ? 生成设计文档 | 50 | 50 |
? Design Review | ? 设计复审 | 20 | 20 |
? Coding Standard | ? 代码规范 (为目前的开发制定合适的规范) | 30 | 30 |
? Design | ? 具体设计 | 180 | 180 |
? Coding | ? 具体编码 | 190 | 190 |
? Code Review | ? 代码复审 | 30 | 30 |
? Test | ? 测试(自我测试,修改代码,提交修改) | 30 | 30 |
Reporting | 报告 | 60 | 60 |
? Test Repor | ? 测试报告 | 30 | 30 |
? Size Measurement | ? 计算工作量 | 10 | 10 |
? Postmortem & Process Improvement Plan | ? 事后总结, 并提出过程改进计划 | 10 | 10 |
合计 | 690 | 640 |
我通过网络的方式了解到,小学三四年级数学有如下的几个特点:
这次要求主要是生成四则表达式
public static void main(String[] arg)throws FileNotFoundException {
Scanner sc = new Scanner(System.in);
int grade,n;//grade:年级,n:题数
System.out.print("Please enter the grade and n: ");
grade=sc.nextInt();
n=sc.nextInt();
// System.out.println("grade: " + grade);
// System.out.println("n: " + n);
function(n);
}
public static void function(int n)throws FileNotFoundException {
System.setOut(new PrintStream(new BufferedOutputStream(
new FileOutputStream("d:/operation/print.txt")),true));
//加一个true相当于flush
Random random = new Random();//随机数种子
int[] a = new int[n];
int[] b = new int[n];
int[] c = new int[n];
int[] symbol1 = new int[n];
int[] symbol2 = new int[n];
int result;
System.out.println("题目:");
for(int i=0; i<n; i++) {
a[i]=random.nextInt(1000)+1;
b[i]=random.nextInt(1000)+1;
c[i]=random.nextInt(1000)+1;
symbol1[i]=random.nextInt(4);
symbol2[i]=random.nextInt(4);
if(symbol1[i] == 3) {
if(a[i]%b[i]!=0) {
a[i]=a[i]/b[i]*b[i];
}
if(symbol2[i] == 3) {
while(a[i]/b[i]%c[i]!=0) {
c[i]=random.nextInt(a[i]/b[i])+1;
}
}
}
else if(symbol2[i] == 3) {
if(b[i]%c[i]!=0) {
b[i]=b[i]/c[i]*c[i];
}
}
请给出本次实验使用的代码规范:
并人工检查代码是否符合规范
-s n 参数个数有误!请重新运行! 成功
-great 0 n 50 年级选择超出范围,请选择一二三年级。 成功
-great a n h 年级选择选项非正整数!请重新运行! 成功
这次作业非常的难,许多问题经过讨论才解决
原文:https://www.cnblogs.com/hyka/p/9672202.html