⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debuggingreport.txt

📁 JAVA编程 SSD3 UNIT1完全答案 满分作业!! CMU经典课程
💻 TXT
字号:
----------------------------------------------------------------------
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -