Introduction to Programming

Introduction to Programming

Programming is the art of writing computer program using a programming language. It is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer “languages,” such as BASIC, FORTRAN, PASCAL, COBOL, C, Java, Python, and C++.

In this Introduction to Programming, you are going to learn basics of programming languages and what it takes to become a programmer. It is usually involves a step-by-step procedure:

  1. Developing the program logic to solve the
    particular problem.
  2. Writing the program logic in a specific
    programming language (coding the program).
  3. Assembling or compiling the program to turn
    it into machine language.
  4. Testing and debugging the program.
  5. Preparing the necessary documentation.

The logic is generally the most difficult part of programming. However, depending on the programming language, writing the statements may also be laborious.

Therefore, when you complete this online course or lecture note, you will gain knowledge that will help you to master any programming language of your choice. All the basic information needed to begin programming is covered in this course. Do not forget that the right programming language depends on what you intend to achieve. Some programming languages have strength in some areas like: device drivers, mobile applications, operating systems, artificial intelligence, machine learning, expert system and so on.

Please use the next button to progress your learning or use the below button to get the lecture note in pdf.


Concept of Algorithm

Author: Uncle Pat

An algorithm is a set of instructions to obtain the solution of a given problem. Computer needs precise and well-defined instructions for finding solution of problems. If there is any ambiguity, the computer will not yield the right results. It is essential that all the stages of solution of a given problem be specified in […]

Flowchart Examples

Author: Uncle Pat

Example Write an algorithm and draw a flowchart to convert the length in feet to centimeter. Solution (Pseudocode) Input the length in feet (Lft) Calculate the length in an (LCM) by multiplying LFT with 30 Print Length in Cm (LCM) Step 1: Input Lft Step 2: Lcm ← Lft * 30 Step 3: Print LCM […]

Program Development Stages

Author: Uncle Pat

Before computer program is successfully written, documented and installed, it must have passed through the following stages. Each stage has something to contribute to the accomplishment of the whole task. The stages are: Problem definition: Before any reasonable and meaningful program could be written, the problem that prompted it must have to be defined. No […]

Levels of Programming Languages

Author: Uncle Pat

All computers whether small or big cannot do anything on their own. They all require a series of instructions (i.e programs) before they can do any processing. It is these programs that will direct the computer to carry out the required task. The programs have to be written out comprehensively: to cover all possibilities: and […]

Good Programming Practice

Author: Uncle Pat

Structured Programming is a general term referring to programming that produces programs with clean flow, clear design, and a degree of modularity or hierarchical structure. Benefits of structured programming include ease of maintenance and ease of readability by other programmers. Structured Programming is one step beyond modular programming with guidelines for “good” modules and “poor” […]

Debugging and Maintenance

Author: Uncle Pat

Debugging is the art of diagnosing errors in programs and determining how to correct them. “Bugs” come in a variety of forms, including: coding errors, design errors, complex interactions, poor user interface designs, and system failures. Learning how to debug a program effectively, then, requires that you learn how to identify which sort of problem […]