The second three weeks work

Student ID 20182325 "Object-oriented programming and data structures," the second and third week learning summary

Learning content summary

  • Playing string should be "+" remaining direct hit. Branches can be connected.
  • Only boolean type true or false is.
  • Input Scanner class object is created, for example, to enter Scanner scan = new Scanner (System.in). With this further input. As a = scan.nextInt (), note type behind the first letter capitalized.
  • Package> class> Method
  • With import statement uses the class
  • Math is a static method
  • java.text inclusions NumberFormat sum DecimmalFormat
  • In getCurrencyInstance NumberFormat into money, getPercentInstance converted to a percentage.
  • DecimmalFormat digital conversion may be a string. You can also set.
  • eg.DecimmalFormat fmt=new DecimmalFormat ("0.###")
  • System.out.println(fmt.format(area))
  • java is also printf
  • enum enumeration type and result set their own, +, - not identifiers available. ordinal of the narrative, name represents the name.

Textbook learning and problem-solving process

  • Question 1: class method in the book do not know how to use.
  • Problem 1 Solution: Ask the teacher to understand the key input method for the type of front behind writing the book.
  • Question 2: {A FFF following enum, B, C}
    FFF D, E, F;
    d.name; e.ordinal;
    variable name to use as a class?
  • Problem 2 Solution: d, e, f as objects, it is the same as the
  • ...

Code debugging and problem solving in the process

  • Question 1: non-stop debugging compiled in two folders super trouble.
  • Problem 1 Solution: The first in a folder, and then after the transfer is completed.
  • Question 2: If the string is only three characters, and you want to output five characters will overflow.
  • Question 2 solution: add a test code to ensure that no error.
  • Question 3: Can not use normal classes and methods.
  • Question 3 solutions:. Java 2. 3. Note 1.import case whether to create an object 4. basic data type is wrong

Code hosting

result
(Run results screenshot statistics.sh script)

Last week exam wrong question summary

  • Wrong question 1:
    • When executing a program, the processor reads each program instruction from (when executing a program, each program instruction processor reads from ___)
    • Error options: gisters stored in the processor (stored in a processor register)
    • The correct option: main memory (main memory)
    • Analysis: CPU register is an integral part of the processor is read from the main memory
  • 2 wrong question:
    • Volatility is a property of (___ nature of variability)
    • Errors option: software (software)
    • The correct option: RAM (random access memory)
    • analysis:
  • 3 wrong question:
    • The ability to directly obtain a stored item by referencing its address is known as (get the ability to store items directly by reference address is called ___)
    • Error options: fetch access (to gain access)
    • The correct option: random access (random access)
    • analysis:
  • 4 wrong question:
    • It is important to dissect a problem into manageable pieces before trying to solve the problem because (before trying to solve the problem, put a problem into controllable parts is very important because)
    • Error option: all of the above (all of the above)
    • 正确选项:It is important to dissect a problem into manageable pieces before trying to solve the problem because (试图解决问题之前,把一个问题分解成可控制的几部分是很重要的,因为)
    • 分析:翻了想当然的错误,其他选项看起来有道理,但书上根本没提。
  • 错题5:
  • Java is an example of a(n) (Java是一个___的例子)
  • 错误选项:high-level language (高级语言)
  • 正确选项:both high-level language and fourth generation language (高级语言和第四代语言都是)
  • 分析:学习太死板,虽然书上没有明确提出但意思还是很明确。要灵活变通。
  • 错题6:
  • Which of the following would be a good variable name for the current value of a stock? (下面哪个是关于变量“current value of a stock”的最佳命名?)
  • 错误选项:csv
  • 正确选项: currentStockVal
  • 分析:长度要适中
  • 错题7:
  • In a Java program, dividing by 0 is a syntax error. (在Java程序中,除以0是一个语法错误。)
  • 错误选项:false
  • 正确选项: ture
  • 分析:逻辑错误
  • 错题8:
    • In a Java program, dividing by 0 is a syntax error. (在Java程序中,除以0是一个语法错误。)
    • 错误选项:false
    • 正确选项: ture
    • 分析:逻辑错误
  • 错题9:
    • What is output with the statement System.out.println(x+y); if x and y are int values where x=10 and y=5? (如果x和y是int类型的数值,x=10,y=5,那么语句System.out.println(x+y);的输出是什么?)
    • 错误选项:出错
    • 正确选项: 15
    • 分析:先计算10+5在输出
  • 错题10:
    • A double is wider than a float and a float is wider than an int. (一个double类型的数比float类型的数更宽泛,一个float类型的数比一个int类型的数更宽泛。)
    • 错误选项:false
    • 正确选项: ture
    • 分析:更宽的类型在大小上更大,或者可以存储更大范围的值。double是64位,而float是32位,由于它的存储方式,float可以存储比int大得多的值范围。
  • 错题11:
    • In order to compare int, float and double variables, you can use <, >, ==, !=, <=, >=, but to compare char and String variables, you must use compareTo( ), equals( ) and equalsIgnoreCase( ).
    • 错误选项:ture
    • 正确选项:false
    • 分析:还可以使用<、>、==、!=、<=、>=直接比较char变量,但是必须使用compareTo()、equals()和equalsIgnoreCase()进行任何字符串比较。

结对及互评

评分标准

  1. 正确使用Markdown语法(加1分):
    • 不使用Markdown不加分
    • 有语法错误的不加分(链接打不开,表格不对,列表不正确...)
    • 排版混乱的不加分
  2. 模板中的要素齐全(加1分)
    • 缺少“教材学习中的问题和解决过程”的不加分
    • 缺少“代码调试中的问题和解决过程”的不加分
    • 代码托管不能打开的不加分
    • 缺少“结对及互评”的不能打开的不加分
    • 缺少“上周考试错题总结”的不能加分
    • 缺少“进度条”的不能加分
    • 缺少“参考资料”的不能加分
  3. 教材学习中的问题和解决过程, 一个问题加1分

  4. 代码调试中的问题和解决过程, 一个问题加1分

  5. 本周有效代码超过300分行的(加2分)
    • 一周提交次数少于20次的不加分
  6. 其他加分:
    • 周五前发博客的加1分
    • 感想,体会不假大空的加1分
    • 排版精美的加一分
    • 进度条中记录学习时间与改进情况的加1分
    • 有动手写新代码的加1分
    • 课后选择题有验证的加1分
    • 代码Commit Message规范的加1分
    • 错题学习深入的加1分
    • 点评认真,能指出博客和代码中的问题的加1分
    • 结对学习情况真实可信的加1分
  7. 扣分:
    • 有抄袭的扣至0分
    • 代码作弊的扣至0分
    • 迟交作业的扣至0分

点评模板:

  • 博客中值得学习的或问题:
    • 总结全面到位
    • 运用各种格式,更易于阅读
    • ...
  • 代码中值得学习的或问题:
    • 思想具有普遍性,适用多种状况 。
    • ...
  • 基于评分标准,我给本博客打分:10分。得分情况如下:
  • 符合第一条,第二条,第三条加一分,第四条加一分,
  • 周五前发博客的加1分
  • 感想,体会不假大空的加1分
  • 排版精美的加一分
  • 进度条中记录学习时间与改进情况的加1分
  • 结对学习情况真实可信的加1分
  • 点评认真,能指出博客和代码中的问题的加1分

  • 参考示例

点评过的同学博客和代码

  • 本周结对学习情况
    • 20182319
    • 结对照片QQ Screenshot
    • 结对学习内容
      • 如何调试代码
      • 关于博客编译的错误
      • 互相监督打代码 ,以及当有问题时互相解决。
  • 上周博客互评情况
  • 逐渐渡过基础开始进入真正的java学习和C有很多不同但还不算太吃力。

学习进度条

代码行数(新增/累积) 博客量(新增/累积) 学习时间(新增/累积) 重要成长
目标 7200行 30篇 400小时
第一周 62/62 3/3 18/18
第三周 347/454 4/7 42/60

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

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

  • 计划学习时间:36小时

  • 实际学习时间:42小时

  • 改进情况:比我想象中的更耗时间。

(Available see more modern software engineering courseware
software engineers the ability to self-evaluation form
)

Reference material

Guess you like

Origin www.cnblogs.com/y775060632/p/11568867.html