What are 3 types of errors?
Syntax Error
Run-Time Error
Logic Error
What type of error does it have?
int value 0;
Syntax Error
"a sequence of steps, that when applied to a problem, will result in a solution. What is this?
algorithms
Errors in programs are often called what?
Bugs
What is factorial?
A factorial is the product of multiplying every number together, from 1 to a given number. It’s denoted by writing n!
When you make a mistake in how the code is written, what error is this?
Syntax Error
What type of error does it have?
Area = 3.14 * radius * 2
Logic-Error
What is the planning tool that can be use in algorithms?
Top-down Design
You may have found yourself spending a lot of time removing these bugs, what process is this called?
Debugging
What is the symbol of factorial?
!
When your program crashes, what error is this?
Run-Time Error
What type of error does it have?
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - 可能尚未初始化变量value
构建失败 (总时间: 6 秒)
Run-Time Error
If cake looks done and is a bit spongy on top then and remove cake from oven. What judgement is use for this algorithum?
Human judgement
What is the planning tool that can be use in debugging?
Top-down Design
What is the value for 3! ?
6
When your program runs but the output is incorrect, what error is this?
Logic-Error
What is the meaning of:
while (valid == false)
loop will continue
Is this a good algorithm without human judgement?
Step 1: Prepare for the baking powder (120g water)
Step 2: Knead the dough
Step 3: Add the butter into the dough
Step 4: Put the dough inside a plate with 28 degrees temperature.
Step 5: The dough will become bigger then place it inside the oven (200 degrees) and set a timer (10-15 min)
Yes!
What is IDE?
Integrated Development Environment
0 1 1 2 3 5 8 13 ( ) ( )
What are the next two value?
21 and 34
This word means "to continually try out solutions, refining each one, and getting closer to the end goal with each attempt. "
Iteration
This program prompted the user to enter an integer, but the user entered a string which caused the program to crash. What way to prevent this from happening ?
try...catch
Sort of like a short form of writing that is between normal English and computer programming language. What is this?
Pseudocode
When do we use this code (Integer, String, or double, etc)?
}catch(Exception e)
{
System.out.println(e.toString());
}
Integer
2, 6, 17, 32, 51
How many numbers are prime number?
2 and 17
2 number are prime number