TYPES OF PROGRAMMING
TYPES OF PROGRAMMING
Hi there people! Let's talk about the types of programming. This blog helps you to understanding and know more about the types of programming, before anything else do you know something about coding? If you don't then I will explain it to you with the help of this blog. Go grab the opportunity, find a comfortable spot to do code, and let's explore together!
Computer Program
It is a sequence of statements intended to accomplish a certain task. It is a set of instructions for a computer to follow.
Programming
It is a process of planning and creating a program
Low-level Languages
These are the languages that deal with a computer’s hardware components.\
Two (2) Common Low-Level Languages:
• Machine Language – It is the language that the computer can directly understand. It is the most basic set of instructions that the computer can execute. Machine language programs are written in binary codes (0, 1).
• Assembly Language – It is a symbolic form of machine language that is easier for people to read, such as ADD AX DX. This makes use of instructions in mnemonic form. o Assembler – a program that translates assembly language instructions into machine language.
High-level Languages
These are the programming languages that use natural languages, such as the English language. A high-level language has its own syntax
• Syntax – rules of the language, for example, print or write is used to produce an output
• Commands – these are program statements that carry out tasks that the program has to perform, for example, print this word or add these two (2) numbers
• Compiler – it is a program that translates a program written in a high-level language into a low-level language before executing the program statements.
• Interpreter – this 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 – these are errors that might be encountered during the process of translation. An example is a misspelled command.
• Logical errors –errors that occur when the syntax of the program is correct, but the expected output is not.
• Debugging – the process of locating and correcting the errors of a program.
Programming Cycle
Algorithm
It is a problem-solving technique used in solving programming problems. It is a step-by-step problem solving process in which a solution is arrived at in a finite amount of time.
The problem-solving process in the programming environment involves the following steps:
1. Problem Analysis: Analyze the problem and outline the problem and its solution requirements.
2. Algorithm Design: Design an algorithm to solve the problem.
3. Coding: Implement the algorithm in a programming language.
4. Execution: Verify that the algorithm works.
Pseudocode
Is a method of describing computer algorithms using a combination of natural language and programming language. It is a technique to show the programming steps.
The following are some rules that are frequently followed when writing pseudocode:
• Symbols are used for the following common operations: o Arithmetic operations (+, -, *, /) o Assignment (=) o Comparison (=, ≠, <, >, ≤, ≥) o Logical (and, or)
• Certain keywords can be used as a command, such as PRINT, WRITE, READ, SET, GO TO, etc.
• Indentation is used to indicate branches and loops of instructions.



Great content thankyou for sharing!
ReplyDelete