Prog 1
Prog 1
Prog 1
- Another low level language but more abstracted than machine code
language.
- This one use simple mnemonics.
-most likely ordinary languages, so are far easier to use (still strict syntax)
-They are portable, meaning they can be executed on many computers.
- you don’t need to write hardware specific code, like low level.
- however some high-level languages are more abstract than others
COMPUTER PROGRAMMING
Computer programming is the process of performing
particular computations (or more generally, accomplishing
specific computing results), usually by designing and
building executable computer programs. Programming involves tasks such as
analysis, generating algorithms, profiling algorithms' accuracy
and resource consumption, and the implementation of algorithms (usually in a
particular programming language, commonly referred to as coding).
The source code of a program is written in one or more languages that are
intelligible to programmers, rather than machine code, which is directly
executed by the central processing unit. To produce machine code, the source
code must either be compiled or transpiled. Compiling takes the source code
from a low-level programming language and converts it into machine code.
Transpiling on the other hand, takes the source-code from a high-level
programming language and converts it into bytecode. This is interpreted into
machine code. The purpose of programming is to find a sequence
of instructions that will automate the performance of a task (which can be as
complex as an operating system) on a computer, often for solving a given
problem. Proficient programming thus usually requires expertise in several
different subjects, including knowledge of the application domain, specialized
algorithms, and formal logic.
COMPUTER PROGRAM
A computer program, also known as an application, is a system of one or
more coded commands that you use to complete an action on your device.
When these instructions work together to perform more complex tasks, such as
running a computer, these instructions are known as software. You can these
instructions to perform various tasks, such as storing sensitive files or
speaking with others via video. You can create instructions for a program by
using a coding language, which converts commands into a form of code that a
computer can understand.
PROCESS OF PROGRAMMING
Understand the problem statement.
Write the algorithm
Write the code
Solve the Compile Time Errors.
Test Run and Debug RunTime/Logical errors
ELEMENTS OF PROGRAMMING
Syntax
Variable
Function
Arithmetic and logical operators
Loop
What is a Flowchart?
Flowchart is a graphical representation of an algorithm. Programmers often
use it as a program-planning tool to solve a problem. It makes use of symbols
which are connected among them to indicate the flow of information and
processing.
The process of drawing a flowchart for an algorithm is known as
“flowcharting”.
Basic Symbols used in Flowchart Designs
1. Terminal: The oval symbol indicates Start, Stop and Halt in a program’s
logic flow. A pause/halt is generally used in a program logic under some
error conditions. Terminal is the first and last symbols in the flowchart.
Flow lines: Flow lines indicate the exact sequence in which instructions
are executed. Arrows represent the direction of flow of control and
relationship among different symbols of flowchart.
Initialization symbol
Hexagon shape is used to represent the initialization symbol
variables inside the initialization symbol holds the value of the first
number in the given.