Chapter 1

What is a computer?

A computer is an electronic device, operating under the control of instructions stored in its own memory, that can accept data, process the data according to specified rules, produce results, store the results for future use 

What is a computer program?  

A program is a set of instructions that direct the computer to accomplish specific tasks. Another term commonly used for computer programs is software, which describes all programs that are used in particular installation together with the associated documentation.

What is a programming?  

Programming is also known as software engineering. The PROCESS of designing/writing and implementing computer programs using the programming languages.

What is a program language?  

The instructions that can be used to construct a program consist of statements written in a programming language, the language that the computer can interpret or “understand” such as C++ or Visual BASIC. First introduced in 1945, programming languages have evolved over the years.  

What is a programmer?

PERSON or individuals who write programs to make computer perform a task.

Importance of computer programming 

A computer without a program is useless. A computer must have a program to accept input, process the input and produce output. Before a program is written, a programmer analyzes the requirement and designs a correct algorithm so that the program will produce the desired output. Therefore, it is very important that programmers have a good understanding of computer, problem‐solving approaches and compositions of the chosen programming languages.

Importance of good programs 

In order for a program to be considered as a good program, it must have the following criteria: Reliability of output, efficiency, interactivity, and readability. 

Reliability of output: A good program must be able to produce correct output. For that, a different set of input data is used to ensure the reliability of the output. 

Program’s efficiency: A good program must be designed to be efficient and reliable in the sense that it produces no errors during execution process. Also, the program must achieve its purpose so that the final result can be trusted. Thus, it is important that the program is outlined first using the pseudocode or flowchart tool. 

Interactivity: The interaction process between the user and the program must be well defined. The interactivity is important so that the user knows the processing status. Program that are user friendly allow the users to responds to instruction correctly and this will help the users to key in input thus minimizing the errors resulted from invalid data. 

Program readability: Readability is concerned with how other person views one’s program. For programmers, the use of indention and comments are common to improve the program’s readability. 






No comments:

Post a Comment