Showing posts with label Unit 1. Show all posts
Showing posts with label Unit 1. Show all posts

Unit 1 - Activity 1B

Posted on Friday, May 7, 2010 by B[H] | 0 comments
Labels:

TEST YOUR UNDERSTANDING BEFORE YOU CONTINUE WITH THE NEXT INPUT…!


1. State the steps in developing program.

2. State the components of documenting a program.

3. What is a flowchart?





Feedback To Activity 1B


1. i Defining and analyzing problems
ii Planning of variables
iii Drawing of flowchart
iv Program writing
v Testing and debugging program
vi Documentation of program.

2. i An accurate specification of requirement
ii Detail input, output, constraint and formula for the above problems
iii Algorithm in the form of flowchart or pseudo code
iv Program source complete with comment
v Sample program which had been run and executed and the tested data.
vi Guideline on how to use the program.

3. Flowchart represents algorithm in graphic form comprising of geometrical
symbols which is interrelated by line of flow.

Unit 1 - Documentation of program

Posted on by B[H] | 0 comments
Labels:

Program must be documented for future references and maintenance process. A well documented program will make it easier for the original programmer or other programmer to follow the program logic and design. Program document should consist of :-

1. An accurate specification of requirement
2. Detail input, output, constraint and formula for the above problems
3. Algorithm in the form of flowchart or pseudocode
4. Program source complete with comment
5. Sample program which had been run and executed and the tested data.
6. Guideline on how to use the program.

Unit 1 - Testing and debugging program

Posted on by B[H] | 0 comments
Labels:

Once the program has been written it must be compiled and executed. This is accomplished by an editor and compiler. An editor lets us type a program, makes changes and save it to a file. The compiler then translates the program into a form that the computer can read. Once the program has been compiled and executed the presence of errors will be readily apparent. Syntactic and execution errors usually result in the generation of error when compiling or executing a program. Error of this type is usually quite easy to find and correct. Much more difficult to detect are logical errors since the output resulting from logically incorrect program may appear to be error free. Thus a good bit of probing may be required which is known as logical debugging.

Unit 1 - Program writing

Posted on by B[H] | 0 comments
Labels:

In the design of program it should be written as simple as possible. The main objective is to give a clear, readable programs through an orderly and disciplined approach to programming.

Unit 1 - Drawing of Flowchart

Posted on by B[H] | 0 comments
Labels:

Flowchart represents algorithm in graphic form comprising of geometrical symbols which is interrelated by line of flow.

Unit 1 - Drawing of Flowchart

Posted on by B[H] | 0 comments
Labels:

Flowchart represents algorithm in graphic form comprising of geometrical symbols which is interrelated by line of flow.

Unit 1 - Planning of variables

Posted on by B[H] | 0 comments
Labels:

Variables are simply references to memory locations. A well plan use
of variables will produce an efficient execution of program in terms
of speed and memory utilization.

Unit 1 - Defining and analyzing problems

Posted on by B[H] | 0 comments
Labels:

Programming begin with a specification of problems. This steps is to identify and understand what are the problems to resolve. The problems must be clearly define, explicit and the requirements in resolving it. Analyzing the problems will determine the input, output and information required to solve these problems, as follows:-

a. input – data to be processed
b. output – the desired result
c. the constraint and additional features in resolving the problems

Unit - Identifying steps in programming

Posted on by B[H] | 0 comments
Labels:

In solving problems of developing program, software development method is used. It consists of several steps which is known as software life cycle, these are:-

1. Defining and analyzing problems
2. Planning of variables
3. Drawing of flowchart
4. Program writing
5. Testing and debugging program
6. Documentation of program.

Process of designing program can be divided into two phases mainly the problem solving phase and implementation phase. The problem solving phase consist of steps 1 through 3 and implementation phase involved steps 4 and 5. While in step 6, documentation is done throughout the process of designing program..

Unit 1 - Activity 1A

Posted on by B[H] | 0 comments
Labels:

TEST YOUR UNDERSTANDING BEFORE YOU CONTINUE WITH THE NEXT INPUT…!


1.1- List the characteristics of a well planned program.

1.2 -What is a program?


1.3 -State the difference between batch mode and interactive mode operation.





Feedback To Activity 1A

1.1 -Integrity, Clarity, Simplicity, Efficiency, Modularity, Generality.

1.2 -A set of instructions that tells the computer what to do is called a program.

1.3 -In batch mode of operation, the program and the data are typed into the computer
and stored within computer’s memory and processed in its proper sequence.
Large quantities of information can be transmitted into and out of the computer
without the user present while the job being processed. Batch processing can be
undesirable for simple jobs. In interactive mode the user and the computer are
able to interact with each other during computational session.

Unit 1 - The components of program structure.

Posted on by B[H] | 0 comments
Labels:

1. Declaration
A declarations associates a group of variables with a specific data type. All variables must be declared before they can appear in excutable statements.
Example :
int a, b, c;
float root1, root2;
char flag, text[80]

2. Input
A set of information called data will be entered into the computer from keyboard, floppy disk, hard disk etc. and stored in a portion of the computer memory. This input which is an input to the computer will then be processed to produced the desired result.

3. Storage
Every piece of information are stored within the computer’s memory which is encoded as some unique combination of zeros and ones. Small computers have memories that are organized into 8-bit multiples called bytes. Large computer have memories that are organized into words rather than bytes. Computers also employ auxiliary storage e.g. disks in addition to their primary memories

which allowed information to be stored permanently and can be physically disconnected when not in use.

4. Operation
There are two different ways computer can be utilized by many different users. These are batch mode and the interactive mode. In batch mode of operation the program and the data are typed into the computer and stored within computer’s memory and processed in its proper sequence. Large quantities of information can be transmitted into and out of the computer without the user present while the job being processed. Batch processing can be undesirable for simple jobs. In interactive mode the user and the computer are able to interact with each other during computational session.

5. Control
Program control refers to the order of execution of instructions in a program. The instruction can be executed sequentially – one by one, from top downwards or non sequential execution of program instruction. Most real life problems require some kind of decision making to take a certain course of action. This means that instruction or a whole block of instructions can be executed, repeated or skipped.

6. Output
The processed data which produced certain result is known as the output. The output data will be presented in a sheet of paper through the printer or display on a monitor.

Unit 1 - Definition of program

Posted on by B[H] | 0 comments
Labels:

A set of instructions that tells the computer what to do is called a program. For example, a word processor is a program written in computer language like C++, that tells the computer what to do when you type in a letter.

UNIT 1 - Basic concept of Programming

Posted on by B[H] | 0 comments
Labels:

Before we start writing our own programs let us examine some important characteristics of well-written computer programs. Basically these apply to any programming language that provide a useful set of guidelines.

a. Integrity. This refer to the accuracy of the calculations since it will be meaningless if calculations are not carried out correctly.

b. Clarity. This refer to the overall readability of the program, with particular emphasis on its underlying logic. If a program is clearly written, it should be possible for programmer to follow the program logic with ease.

c. Simplicity. The clarity and accuracy of a program are usually enhanced by keeping things as simple as possible, consistent with the overall program objectives.

d. Efficiency. This is concerned with execution speed and efficient memory utilization.

e. Modularity. Many programs can be broken down into a series of identifiable subtask that enhances accuracy and clarity of a program and facilitates future program alterations.

f. Generality. Usually we will want a program to be as general as possible, within reasonable limits. A considerable amount of generality can be obtained with very little additional programming effort.