0% found this document useful (0 votes)
124 views3 pages

CC2 Week-1

This document provides an introduction to the Computer Programming 1 course. It will be graded based on 30% synchronous classes, 30% asynchronous classes, and 40% on a major exam. The document defines computer programming and programming languages. It discusses high-level languages like Java that are easier for users but require compilers, low-level languages like machine code that are harder for users but understood by computers, and interpreters versus compilers. It also covers debugging errors and introduces integrated development environments.

Uploaded by

levi grey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views3 pages

CC2 Week-1

This document provides an introduction to the Computer Programming 1 course. It will be graded based on 30% synchronous classes, 30% asynchronous classes, and 40% on a major exam. The document defines computer programming and programming languages. It discusses high-level languages like Java that are easier for users but require compilers, low-level languages like machine code that are harder for users but understood by computers, and interpreters versus compilers. It also covers debugging errors and introduces integrated development environments.

Uploaded by

levi grey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to Computer Programming 1

LECTURER: Xeniorita Alondra Bio


Grading System:
30% - Synchronous Classes
30% - Asynchronous Classes
40% - Major Exam

- Computer Programming

Attempting to get a computer to complete a specific task without making mistakes.

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.

This is where programming languages come into play.

- Programming Language Pt. 1

Programming languages serve as a middle - man of sorts

Translate your instructions into machine code

Machine language is a low-level programming language, or one thats correspons


closely to a computer processor's circuitry.

Each high-level language has its own syntax, or rules of the language.

- High - Level Programming Language vs. Low - Level Programming Language

High - Level Programming Language

Any programming language that enables development of a program in a much more


user-friendly programming context and is generally independent of the computer's
hardware architecture

Naiintindihan ni user, pero hindi ni computer

Low - Level Programming Language

An instruction set is the set of instructions that the processor understands.

Naiintindihan ni computer, pero hindi ni user

Two types of low-level language are: machine code and assembly language.


- Programming Language Pt. 2

Using a programming language, programmers write a series of program statements, similar


to English sentences, to carry out the tasks they want the program to perform

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.

- Compiler vs. Interpreter


Compiler

It translates an entire program before carrying out the statement, or executing it.

Interpreter

It translates one programe statement at a time, executing a statement as soon as it is


translated.

- Naming
Pascal: Capital letter first letter in first and consecutive words

Camel: lowercase first letter on first word and Capital on consecutive words

- Java Programming Language


Java is a general, all-purpose computer programming language that is curcunstantial, class
- based, object - oriented and specially designed to have few application dependancies as
possible.
Created by "James Gosling" from "Sun Microsystems" (sun) 1991.
First public version, Java 1.0, was released in 1995.
Oracle called this open JDK (Java Development Kit)
Current version is Java 18
Sun was acquired by Oracle Corp. in 2010 (Steermanship for Java)
Java uses the besty of both technologies: a compiler to translate your programming
statements to bytecode and a compiler to read the compiled code line by line when the
program executes (also called at runtime).

- 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

- Errors and Debugging

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

Integrated Development Environment (IDE)

IT is a place to write, run and debug code

Examples of IDEs are Netbeans, Eclipse, IntelliJ, Visual Studio, Sublime, etc.

You might also like