Programming is the art of writing computer program. 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++. It is usually involves a step-by-step procedure:
a. Developing the program logic to solve the
b. Writing the program logic in a specific
programming language (coding the program).
c. Assembling or compiling the program to turn
it into machine language.
d. Testing and debugging the program.
e. 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.
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 […]
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 […]
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 […]
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 […]
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 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 […]