20162302 第五周作业

20162302 2016-2017-2 《程序设计与数据结构》第五周学习总结

教材学习总结

了解有关类和对象的相关内容
研究类之间的关系
方法定义结构

教材学习中的问题和解决过程

  • 问题1:修改过程中,改了很多次这个都还存在

  • 问题1解决方案:

    引用了其他public里面的内容

  • 问题2:

    在运行过程中只能执行一次

  • 问题2解决方案:

    缺少while循环

  • 问题3:

  • 问题3解决方案:缺少一个long

代码调试中的问题和解决过程

代码托管

上周考试错题总结

  • 教材P103页代码SnakeEyes.java的运行结果是固定的。(False)
    这个代码是模拟掷骰子,结果随机。
  • Suppose we wanted to process a text file called “input.txt” using the Scanner object. Which of the following lines of code correctly creates the necessary Scanner object?(假如我们想用Scanner对象处理文件名为“input.txt”的文本文件,下面哪行代码正确的创建了Scanner对象)(D)
    A .Scanner inputFile = new Scanner(“input.txt”);
    B .Scanner inputFile = new Scanner(new InputFile(“input.txt”);
    C .Scanner inputFile = new Scanner(new File(input.txt);
    D .Scanner inputFile = new Scanner(new InputFile(input.txt);
    E .Scanner inputFile = new Scanner(new File(“input.txt”);
    Scanner需要将文件对象引用为参数,所以选择A、B和D是不正确的。文件对象的构造函数包含一个字符串,所以选择C是不正确的。因此,选择E是正确的。
  • Which of the following statements best describes the flow of control in the main method of a Java program that has no conditionals or loops? (在没有条件和循环语句的情况下,对于Java程序中main方法的描述,下面哪个选项最为合适?)
    A .Program statements are all executed at the same time.(程序语句同时执行)
    B .Program statements are executed according to their priority, which is specified by the programmer.(程序语句根据程序员指定的优先级按优先级执行)
    C .Program statements are executed linearly, with earlier statements being executed first.(程序语句顺序执行,前面的语句先执行)
    D .Program statements are executed linearly, with later statements being executed first.(程序语句顺序执行,后面的语句先执行)
    E .Some program statements are executed at the same time, and others are executed in a linear manner. (有的程序语句同时执行,有的语句顺序执行)
    ava程序中的程序语句的执行线性当没有条件语句或循环。这意味着在代码中出现较早的语句在代码后面出现的语句之前执行。

结对及互评

点评过的同学博客和代码

其他(感悟、思考等,可选)

学习进度条

代码行数(新增/累积) 博客量(新增/累积) 学习时间(新增/累积) 重要成长
目标 5000行 30篇 400小时
第一周 24/2237 1/6 13/123
第二周 496/2237 1/6 26/123
第三周 326/2237 1/6 24/123
第四周 909/2237 2/6 36/123
第五周 506/2237 1/6 24/123

尝试一下记录「计划学习时间」和「实际学习时间」,到期末看看能不能改进自己的计划能力。这个工作学习中很重要,也很有用。
耗时估计的公式
:Y=X+X/N ,Y=X-X/N,训练次数多了,X、Y就接近了。

参考:软件工程软件的估计为什么这么难软件工程 估计方法

  • 计划学习时间:24小时

  • 实际学习时间:24小时

  • 改进情况:

(有空多看看现代软件工程 课件
软件工程师能力自我评价表
)

参考资料

posted @ 2017-04-02 23:46  20162302  阅读(291)  评论(9编辑  收藏  举报