Beruflich Dokumente
Kultur Dokumente
Basically there are three types of errors (i) Syntax error:- This type of error occurs when we dont obey the syntax rules. The common syntax error we commit is forgetting to terminate each program statement with a semicolon. Ex: d=mn (ii) Logic error: Logic error are those errors that occur when we implement the algorithm for solving the problem incorrectly. Ex: We have to accomplish C=A+B but by mistake we have typewritten C=A-B. Such program will run properly but will give erratic result. (iii) Runtime error:-Runtime error occurs when a program is run on the computer and the results are not achieved due to some misinterpretation of a particular instruction. Ex: C=C/0;
Disadvantages of modular programming: a) b) c) Can lead to problems with variable names. Means documentation of modules must be thorough. Can lead to problem when modules are linked because link must be thoroughly tested.
used to invoke the procedure. After the execution of the statements, flow of control return after the position where the call was made. In procedural programming, the main program is responsible to pass data to the individual calls, the data is processed by the procedures and after the execution of whole program, the resulting data is presented. (ii) Modular Programming: In modular programming the problem is split up into modules.
Advantages of modular design: (a) Some modules will be standard procedures used again and again in different programs or parts of the same program. (b) Since module is small, it is simpler to understand it as a unit of code. It is therefore easier to test and debug. (c) Program maintenance becomes easier because the affected modules can be quickly identified and changed. (d) Modules can be tasted independently, thereby shortening the time taken to get the whole program working. (iii) Structure programming: Structured programming is a programming paradigm aimed on improving the clarity, quality, and development time of a computer program by making extensive use of subroutines, block structures and for and while loops - in contrast to using simple tests and jumps such as the goto statement which could lead to "spaghetti code" which was both difficult to follow and to maintain. (iv) Unstructured programming: In unstructured programming, the functions, sequence of statements are written in single program so one main program gets very large.
(f) Go from left to right and top to bottom in constructing the flowchart.
Customer service may improve due to the items or products are produced on time. Efficiency may be improved because of the less work-in-process in cluttering the work centre and adding to overhead costs. Quality may be improved because less work-in-process hides fewer problems.
ii) Lead time: When an order is placed, it may take some time before it is actually executed. The actual time taken to fulfil the order is called lead time.