debuggingreport.txt
来自「JAVA编程 SSD3 UNIT1完全答案 满分作业!! CMU经典课程」· 文本 代码 · 共 61 行
TXT
61 行
----------------------------------------------------------------------
Bug #1
Description of the bug:
Answer: Local variables, numberOfA, numberOfT, numberOfC, numberOfG. They coverd the global variables.
Lines of source code that contain the bug:
Answer:Line 86, 87, 88, 89
Lines of the fixed code:
Answer: delete all the code in line 86, 87, 88, 89
----------------------------------------------------------------------
Bug #2
Description of the bug:
Answer:It should not be variable numberOfC, but numberOfG
Lines of source code that contain the bug:
Answer: Line 104
Lines of the fixed code:
Answer: change variable numberOfC to numberOfG
----------------------------------------------------------------------
Bug #3
Description of the bug:
Answer:The condition of while loop is not correct
Lines of source code that contain the bug:
Answer:Line 166
Lines of the fixed code:
Answer: while( index < sequence.length() )
----------------------------------------------------------------------
Bug #4
Description of the bug:
Answer:The logic of condition of if statement is not correct
Lines of source code that contain the bug:
Answer: Line 172
Lines of the fixed code:
Answer: if( (firstNucleotide == input) && (secondNucleotide == input) )
---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?