Coe 1L Computer Programming and Fundamentals: Assignment #1
Coe 1L Computer Programming and Fundamentals: Assignment #1
Assignment #1
● Planning programs before writing
o Algorithm is a precise rule (set of rules) for solving any mathematical problems. An
algorithm must be precise and well-defined and it should reach a result after a finite
number of steps. It can be represented into programs, flowcharts and pseudocodes.
Operations: addition, subtraction, etc
While writing the algorithms the following notations are considered.
1. Name of the Algorithm (problem) ex: Algorithm : Area of a circle
2. Step Number ex: Step 1
3. Explanatory comment (describes the operation) ex. Read radius
4. Termination (end) ex. STOP
o Flowchart is a logic diagram to describe each step that the program must perform to
arrive at the solution. It is an easy way to understand and analyze the problem. It is
referred as the blueprint of algorithm. Programmer prepares this before coding. Types:
Program flowcharts and System flowcharts
o Pseudocode (‘pseudo’ means ‘limitation’ or ‘false’ and ‘code’ refers to a set of
instructions written in a programming language) is a generic way of describing an
algorithm without being restricted by any programming rules. It is an outline of a
program, written in form, which can easily be converted into real programming
statements. It uses English words. (Ravichandran, 2001)
● Programming language is a language that a user employs to interact with the computer. They can
be divided into three major categories: machine, assembly, and high level languages.
o Machine language (Low Level) is a first generation language in which instructions are in
the form of binary 0’s and 1’s that represent high and low electrical voltage.
o Assembly Language is a second generation language in which mnemonic code is
assigned to each machine language instruction to make it easier to remember and
write. Applications : developing OS, loaders, linkers, etc
o High Level Languages designed to overcome the limitations of machine and assembly
language. Programs here are in a human readable form and easier to learn. e.g. BASIC,
FORTRAN, COBOL, JAVA (I.T.L. Education Solutions Limitations, 2006)
Bibliography
(n.d.). Retrieved from Ruby: https://www.ruby-lang.org/en/
(2006). I.T.L. Education Solutions Limitations. In Introduction to Information Technology (pp. 217-240).
Dorling Kindersley (India) Pvt. Ltd.
(2001). In D. Ravichandran, Introduction to Computers and Communication (p. 179). Tata McGraw-Hill
Publishing Company.