CC2 Week-1
CC2 Week-1
- Computer Programming
Computer program instructions are also called program source code and computer
programming is also called program coding.
Binary is a series of 1's and 0's fed and innterpreted by the computer.
Each high-level language has its own syntax, or rules of the language.
After the program statements are written, high - level language programmers use a
computer program called a compiler or interpreter to translate their language statements
to machine code.
It translates an entire program before carrying out the statement, or executing it.
Interpreter
- Naming
Pascal: Capital letter first letter in first and consecutive words
Camel: lowercase first letter on first word and Capital on consecutive words
- Java Bytecode
The Java compiler translates your Java rogram into a language called bytecode.
Bytecode isn't a machine language for any particular computer, but it's similar to the
machine language of most common computers.
The Java Virtual Machine (JVM) is an interpreter that translates and executes bytecode.
Java bytecode runs on ay computer that has a JVM.
You normally will give two commands, one to compuile your Java program into bytecode
and one to run your program.
The run command tells the bytecode interpreter to execute the bytecode
This run command might be called run or something else, but it is unlikeley to be called
interpret.
insert pg. 11
Debugging - the process of detecting and removing of existing and potential errors (also
called as 'bugs') in a software code that can cause it to behave unexpectedly or crash.
Syntax Error - mistakes in the source code, such as spelling and punctuation errors,
incorrect labels, and so on, which cause an error message to be generated by the compiler.
Semantic Error - It occurs when a statement is syntactically valid, but does not do what the
programmer intended.
Logical/Logic Errors - It occurs when there is a fault in the logic or structure of the problem.
insert pg. 13
Examples of IDEs are Netbeans, Eclipse, IntelliJ, Visual Studio, Sublime, etc.