软件工程网络15结对编程作业(201521123062)

it2022-05-05  71

0、结对编程成员:

吴剑通博客地址:https://www.cnblogs.com/wjt960310/ 杨钧宇博客地址:http://www.cnblogs.com/GOB8023/ 码云地址:https://gitee.com/jmu201521123056/four_operations 源代码:https://coding.net/u/Belong033/p/java-third/git 原题目要求http://www.cnblogs.com/happyzm/p/6472120.htmlhttp://www.cnblogs.com/happyzm/p/6509116.htmlhttp://www.cnblogs.com/happyzm/p/6558307.html

成员照片:

1.改进现有代码

浏览所有代码考虑代码质量和测试覆盖率

2、博客要求:

提交的博客(两个同学都要写)必须完整包含下面内容:

需求分析: 1)计时器:显示用户完成全部答题的所用时间。 2)计算正确个数:显示用户所答对题目的个数 3)式子个数:用户总共答题个数 4) 语言选择功能:更换显示的语言。 程序设计:

代码展示: 1)、计时器:

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { over=System.currentTimeMillis(); now1=((over-now) / (1000 * 60 * 60) % 60)+":"+((over-now)/ (1000 * 60)% 60)+":"+((over-now)/ 1000 % 60); String a=now1+""; jTextField7.setText(a); // TODO add your handling code here: }

2)、语言选择

private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) { jLabel1.setText("arithmetic"); jLabel2.setText("Please input number :"); jButton1.setText("Start"); jLabel3.setText("The topic purpose :"); jButton2.setText("answer"); jLabel5.setText("Your answer:"); jLabel10.setText("correct answer:"); jButton4.setText("Next question"); jLabel9.setText("The time used for:"); jLabel7.setText("Wrongc number : "); jLabel6.setText("All number : "); jLabel8.setText("correct : "); jButton3.setText("End of the answer");// TODO add your handling code here: } private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) { jLabel1.setText("四则运算"); jLabel2.setText("请输入题数:"); jButton1.setText("开始做题"); jLabel3.setText("题 目:"); jButton2.setText("查看答案"); jLabel5.setText("你的答案: "); jLabel10.setText("正确答案:"); jButton4.setText("下一题"); jLabel9.setText("所用时间为:"); jLabel7.setText("错 题 数:"); jLabel6.setText("答 题 数:"); jLabel8.setText("正 确 率:"); jButton3.setText("结束答题"); // TODO add your handling code here: } private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) { jLabel1.setText("四則運算"); jLabel2.setText("請輸入題數:"); jButton1.setText("開始做題"); jLabel3.setText("題 目:"); jButton2.setText("查看答案"); jLabel5.setText(" 你的答案是:"); jLabel10.setText("正確答案是:"); jButton4.setText("下一題"); jLabel9.setText("所用時間為 :"); jLabel7.setText("錯 題 數:"); jLabel6.setText("答 題 數:"); jLabel8.setText("正 確 率:"); jButton3.setText("结束答題");

程序运行:程序运行及每个功能的使用截图。

代码要求

要求必须增量式开发-提交到码云地址,码云上要能看到多次commit的记录,同时必须有两个人各自的commit记录。

PSP2.1个人开发流程预估耗费时间(分钟)实际耗费时间(分钟)Planning计划106· Estimate明确需求和其他相关因素,估计每个阶段的时间成本86Development开发120180· Analysis需求分析 (包括学习新技术)1520· Design Spec生成设计文档1510· Design Review设计复审58· Coding Standard代码规范1015· Design具体设计1510· Coding具体编码4060· Code Review代码复审108· Test测试(自我测试,修改代码,提交修改)2030Reporting报告1530·测试报告55·计算工作量65·并提出过程改进计划102

小结感受:

结对编程主要是要两人分别体会并理解领航员和驾驶员两种角色对于项目来说的意义,所谓1+1>2就是要看在编程过程中我们两个人合作的效率大于一个人,两个人有不同的想法,通过协商和改变,从而达成达成题目的要求。

转载于:https://www.cnblogs.com/GOB8023/p/8646936.html

相关资源:各显卡算力对照表!

最新回复(0)