Essential Question: Why am I getting this error?
Mastery Objectives:
SWBAT identify the various types of errors.
SWBAT identify what causes the errors.
SWBAT recreate these errors.
Types of Errors:
Logic Error
A mistake in the algorithm that causes the program to work unexpectedly. Logic error is a mistake by the programmer while a run-time error is beyond the scope of the program.
Syntax Error
A mistake where the rules of the programming language, similar to the grammar rules of a human language, are violated. A syntax error occurs when the programmer violates the rules of the program, while a logic error occurs during the reasoning and analytical part of the programming.
Run-time Error
A mistake that occurs during the execution of a program due to factors such as the properties or constraints of the machine that is carrying out the program. A run-time error occurs during the execution of the program while a syntax error refers to a “grammatical” error in the source code.
Overflow Error
A mistake that occurs when the computer is provided a value that it cannot deal with. Unlike logic or syntax error, an overflow error occurs during the execution of the program.
Directions: Change the speed and change the interval to create overflows.
https://studio.code.org/s/csp1-2021/lessons/5/levels/1
Roundoff Error
Roundoff error is the difference between an approximation of a number used in computation and its exact (correct) value. In certain types of computation, roundoff error can be magnified as any initial errors are carried through one or more intermediate steps.
Directions: This project is to be done individually. Here are the requirements:
Create a slide show presentation that lists all the errors.
Copy and paste, from my website, the name of the error and the definition.
Search the internet for an image of the error message.
Provide at least 3 scenarios , for each type of error, that would cause the error message.