Introduction - Docx Programing
Introduction - Docx Programing
Programming involves describing processes and procedures which are derived from
algorithms. The ability to program is what sets apart a developer and an end user.
Typically the role of the developer is to instruct a device (such as a computer) to
carry out instructions; the instructions are known as source code and is written in a
language that is converted into something the device can understand. The device
executes the instructions it is given.
Algorithms help to describe the solution to a problem or task; by identifying the
data and the process needed to represent the problem or task and the set of steps
needed to produce the desired result.
Programming languages typically provide the representation of both the data and
the process; they provide control constructs and data types (which can be
numbers, words, and objects, and be constant or variable).
The control constructs are used to represent the steps of an algorithm in a
convenient yet unambiguous fashion. Algorithms require constructs that can
perform sequential processing, selection for decision-making, and iteration for
repetitive control. Any programming language that provides these basic features
can be used for algorithm representation.
This unit introduces students to the core concepts of programming with an
introduction to algorithms and the characteristics of programming paradigms.
Among the topics included in this unit are: introduction to algorithms, procedural,
object-orientated & event-driven programming, security considerations, the
integrated development environment and the debugging process.
On successful completion of this unit students will be able to design and implement
algorithms in a chosen language within a suitable Integrated Development
Environment (IDE). This IDE will be used to develop and help track any issues with
the code.
As a result they will develop skills such as communication literacy, critical thinking,
analysis, reasoning and interpretation which are crucial for gaining employment and
developing academic competence
LO1
Computer programming is the act of writing algorithms (a set of instructions) that tell
a computer what to do.
■ These algorithms are executed by a computing device (PC, Laptop, mobile device,
tablet, washing machine, car alarms etc.)
■ Computer programmers write, test, and maintain the detailed instructions, called
programs, that computers must follow to perform their functions.
■ Programmers also conceive, design, and test logical structures for solving
problems by computer.
All data items in the computer are represented as strings of binary digits. In order to
give these strings meaning, we need to have data types. Data types provide an
interpretation for this binary data so that we can think about the data in terms that
make sense with respect to the problem being solved. These low-level, built-in data
types (sometimes called the primitive data types) provide the building blocks for
algorithm development.
P1
Technically, computers use algorithms to list the detailed instructions for carrying out
an operation. For example, to compute an employee’s paycheck, the computer uses
an algorithm. To accomplish this task, appropriate data must be entered into the
system. In terms of efficiency, various algorithms are able to accomplish operations
or problem solving easily and quickly.
■ Typically, algorithms go with the data structures to manipulate the data (e.g., the
methods of a class).
■ Most algorithms transform input objects into output objects. – Input - An algorithm
has input values from a specified set – Output - From each set of input values an
algorithm produces output values from a specified set. The output values are the
solution to the problem.
• Generic- The algorithm should be applicable for all problems of the desired form,
not just for a particular set of input values.
LO2