Programming Methodology
Programming Methodology
METHODOLOGY
STYLISTIC GUI DELINES
Meaningful Names for Identifiers.
Guidliness followed while dealing with identifiers.
1. Assign meaningful names for all identifiers viz. Variables, function and procedures, etc.
2. Do not usesimilar looking names e.g., manage, manager.
3. Always assign names to scalar constants when it helps in clarity and redability.
Insert Blank Lines and Blank Spaces-The blank lines are inserted to seprate declaration blocks,
comment boxes, procedures and funtions etc. Normally, blank lines are inserted to separate declaration
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
block, comment boxes, procedures and function etc. Normally, blank lines are inserted before label,
const, type, var declarations.
Statement formatting style - c++ is one of those languages which provides use of free formating style
program to print odd number from 100 to1 with statement in free formatting style
#include<iostream.h>
int main() {for (int i=99;i>0;i--) if(i%2) cout<<i<<' '; return 0 ; }
Defination -- when programming formatting is done to make a program more redable,it is called
prettyprinting.
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
2) code the algorithm in this stage the program is translated into program using some programming
language
3) Compile the program after fedding the program next stage is to compile it
4) Execute the program after compilation f an error free program , the program is executed
ROBUSTNESS
The ability of a program, to recover following an error and to continue operating wihtin its enviroment ,
is called robustness.
The code which can handle exception data error and operational error is called guard code.
TYPE OF ERRORS
Compile-time errors
(i)
Syntax error occur when rules of a programming language are misused i.e., when a
grammatical rule of C++ is violated.
Syntax refers to formal rules governing the construction of valid statements in a language.
(ii)
Run-Time errors
Errors that occur during the execution of a program are run-time errors.
Logical Errors
Something, even if you dont encounter any error during compile-time and run-time, your
program does not provide the correct result. This is because of the programmers mistaken
analysis of the problem he or she is trying to solve. Such errors are logical errors.
DOCUMENTATION
Documentation refers to written descriptions, specification, design, code and comment, internal to a
program, which make a program more understandable, readable and more easily modifiable.
MODULES OF DOCUMENTATION
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
Modules make information easily accessible to the specific user for which they were prepared, and they
reduce the costs of production and maintenance. The documentation modules are generally to as
manuals.
The aggregation of modules and their detail would depend upon:
Complexity of system
Technical sophistication of user
People involved in development and use
Expected life of documentation
USER DOCUMENTATION
There are many types of user: the manager who supervises the operation of a computer application or
receives its printed reports; the manager or end user who may directly use an application through a
computer terminal; a clerk who prepares input for a computer and may even use its output.
A user documentation (or manual) should provide the following information
General descriptions
Output specifications
Runflow and description
File disposal
Logic flow
Error messages
Program testings
Special run instructions
File descriptions (if any)
Security considerations
Record layouts
Restart and Recovery procedures
General Description
Run flow
The program will prompt the user for inputting three numbers by flashing following message:
Enter three numbers
The user is supposed to enter three numbers in front of the message:
Output Specifications
The program gives the biggest of the three numbers by flashing the following message:
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
Error Messages
The program may display following errors shown in two categories:
Category 1 Syntax errors
Unknown identifier
; Expected
Mixed-up ifs and elses
Category 2 Run-time errors
Incompatible values
Security Conditions
Please do not work on the program on Sundays and other holidays.
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
The internal documentation includes comments, self documenting code and program formatting
(prettyprinting). The goal of all these features is to make the program readable, understandable, and
easily modifiable.
Self documenting code is the source code that uses meaningful names for constants, variables, and
subprogram identifier to clarify their meaning in the program.
Uses of Documentation
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1
PROGRAM MAINTENANCE
Program maintenance refers to the modification of a program, after it has been completed, in
order to meet changing requirement or to take care of error that show up.
Corrective Maintenance. When a program after completion, is put to operations, some error
might show up because of some unexpected situation, untested areas. Such error are fixed up
and this type of maintenance, which is done to correct the errors
Adaptive Maintenance. Changes in the environment in which an information system operates
may also lead to systems maintenance.
Preventive Maintenance. If possible error could be anticipated before they actually occur, the
maintenance could be done to avoid them and the system down time can be saved.
Perfective Maintenance. In this rapidly changing world, information technology is the fastest
growing area. In information technology world, no technology has proved permanent.
This page was created using BCL ALLPDF Converter trial software.
To purchase, go to http://store.bcltechnologies.com/productcart/pc/instPrd.asp?idproduct=1