Engineering in Kenya

# Bachelor of Science in Computer Science

Posted by on Jun 1, 2018 in Computer Science | 0 comments

Bachelor of Science in Computer Science involves good programming methods as a main subject. Programming can be of great value in creating the right specifications and also producing correct programs. Engineering in Kenya has more articles.

Bachelor of Science in Computer Science

# Bachelor of Science in Computer Science; Programming Stages

In the process of producing the necessary instructions making up a program, the following stages can be recognized:

• Understanding the problem.
• Planning the method of solution.
• Developing the methods using suitable aids e.g. the pseudo code (which in good programming methods as one of the Projects for Computer Science is a notational system in which ideas can be expressed informally in the algorithm development process.).
• Typing the instructions into the computer using an editor and suitable programming language.
• Testing the program. In Projects for Computer Science, various components as well as the whole program are tested.
• Documenting all the work involved in producing the program. This documentation will be developed stage by stage.

1.         Understanding the problem.

In good programming methods for the Bachelor of Science in Computer Science, this is a questions stage. What is the program supposed to do – what is the program specification? Is the task computable? Computable in Good Programming Methods for the Bachelor of Science in Computer Science is when a task can be performed by a machine. Strange thou it may seem, many tasks are not computable. It is relatively easy to discover non-computable mathematical functions e.g. a function that requires division by zero is not computable. There are also some celebrated unsolvable problems in the theory of computability. One example in this category in Good Programming Methods is ‘the halting problem’. Put simply, there is no algorithm that can take an arbitrary program and its input and decide whether the program execution will stop if the program is given that input. Such an algorithm would have great practical value but cannot exist.

2.         Planning the method of solution.

What are the program components? These components become modules, each of which may be handled by a separate programmer, and the modules tested individually and the integrated together.

3.         Developing the methods using suitable aids e.g. pseudo code

A step by step approach is followed to break the program into components. This in Good Programming Methods for the Bachelor of Science in Computer Science can be done in two designs;

•           Top-down design in good programming methods for the Bachelor of Science in Computer Science breaks the problem into parts and completes each part then integrates the result. Top-down design methods attempt to avoid the problems of the bottom-up design by;

1. Starting with the general concept of what is required.
2. Breaking the whole into component parts
3. Tackling the component parts in the same manner

The interrelationships between components are decided upon before the components are created so that the final integration of the parts of the whole should be more straightforward. A number of methods in use today for good programming methods for the Bachelor of Science in Computer Science may be described as top-down.

•           Bottom-up design in good programming methods begins by identifying and solving subtasks that are understood and as other subtasks become clearer, they too are solved and then all the pieces are combined into one whole.

There is one severe danger inherent in the bottom up approach; the various parts may not fit together properly, and, in some cases, considerable effort may be necessary to overcome this problem.

4.         Typing the instructions

This in good programming methods is done using an editor and programming language.

5.         Testing the program

If during testing the program an error is discovered, then it is important to go back to earlier stages in order to correct the error. If the error comes from misunderstanding the problem, it will probably be better to start again from the beginning. The program in good programming methods for the Bachelor of Science in Computer Science is usually tested using a set of carefully selected ‘test data’. Testing the program may be conducted by executing the program on the computer or by simulating its execution by a manual pencil and paper exercise called a ‘dry run’. There are two basic types of testing in good programming methods when involved in Bachelor of Science in Computer Science;

•           Functional testing (also called black box testing). This form of testing in good programming methods for the Bachelor of Science in Computer Science is based on typical, extreme and invalid data values that are representative of those covered by the specification.

•           Logical testing (also called white box testing). This form of testing in good programming methods for the Bachelor of Science in Computer Science is based on examining the internal structure of the program and selecting the data which gives rise to the alternative cases of control flow, e.g. both paths through an ‘if..then….else..’

## Bachelor of Science in Computer Science; Other Definitions

Program specification is a statement of what the proposed program is required to do. The programmer must then design and implement the program so that it meets the specification.

Correctness is when a program designed meets its specification in Bachelor of Science in Computer Science.

If the specification is wrong in that it does not specify what is really required, we could write a correct program but it would be unsuitable.

### Conclusion on Bachelor of Science in Computer Science

Functional testing is often used at the final stage of programming as a basis for accepting or rejecting the program. It is not adequate by itself and logical testing by the programmer during program development tends to be far more beneficial. Debugging is also important in good programming methods for the Bachelor of Science in Computer Science. A program fault that leads to the failure of a program during testing, or after it has been commissioned, is called a bug. The process of finding and getting rid of bugs is called debugging. Decomposition is a term used to describe the process of breaking down a program into component parts in good programming methods as one of the main subjects in the Bachelor of Science in Computer Science