0% found this document useful (0 votes)
18 views

Types of Programming

This document discusses types of programming languages and the programming cycle. It describes low-level languages like machine language and assembly language that deal directly with hardware. High-level languages use natural language and require compilers or interpreters. The programming cycle involves problem analysis, algorithm design, coding the algorithm, and executing the program to verify it works. Common errors include syntax errors during translation and logical errors when the program runs incorrectly.

Uploaded by

Randell Daniel
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Types of Programming

This document discusses types of programming languages and the programming cycle. It describes low-level languages like machine language and assembly language that deal directly with hardware. High-level languages use natural language and require compilers or interpreters. The programming cycle involves problem analysis, algorithm design, coding the algorithm, and executing the program to verify it works. Common errors include syntax errors during translation and logical errors when the program runs incorrectly.

Uploaded by

Randell Daniel
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

TYPES OF PROGRAMMING • Logical errors - errors that occur when the

syntax of the program is correct, but the


Computer program – set of instructions for a
expected output is not.
computer to follow.
• Debugging - the process of locating and
Programming – process of planning and
correcting the errors of a program.
creating a program.
PROGRAMMING CYCLE
Low-level Languages – languages that deal
with a computer’s hardware components. Algorithm - It is a problem-solving technique
used in solving programming problems. It is a
• Machine Language – the most basic set of
step-by-step problem-solving process in which
instructions that the computer can execute. It
a solution is arrived at in a finite amount of
is written in binary codes (0 , 1).
time.
• Assembly Language - a symbolic form of
The problem-solving process in the
machine language that is easier for people to
programming environment involves the
read, such as ADD AX DX. This makes use of
following steps:
instructions in mnemonic form.
1. Problem Analysis: Analyze the problem and
○ Assembler - program that translates
outline the problem and its solution
assembly language instructions into machine
requirements.
language.
2. Algorithm Design: Design an algorithm to
High-level Languages – programming
solve the problem.
languages that use natural languages, such as
the English language. A high- level language 3. Coding: Implement the algorithm in a
has its own syntax. programming language.

• Syntax – rules of the language, for example, 4. Execution: Verify that the algorithm works.
print or write is used to produce an output.
PROBLEM ANALYSIS-CODING-EXECUTION
• Commands - program statements that carry CYCLE :
out tasks that the program has to perform, for
example, print this word or add these two (2)
numbers.

• Compiler - program that translates a


program written in a high-level language into
a low-level language before executing the
program statements.

• Interpreter - acts as a compiler, but it


translates one (1) program statement at a
time, this executes the statement as soon as it
is translated.

• Syntax errors - errors that might be


encountered during the process of
translation. An example is a misspelled
command.

You might also like