SlideShare a Scribd company logo
2
Most read
10
Most read
11
Most read
STEPS FOR DEVELOPING A
‘C’ PROGRAM.
BY
SAHITHI NARAPARAJU
INTRODUCTION
•
1)
2)
3)
•

The program development process in C includes three
important stages namely:
Program design
Program coding and
Program testing
All the three stages contribute to production of high
quality programs
1) Program design :
• It is a foundation for good program.
• Program design basically concerned with
development strategy to be used in writing
program, in order to achieve solution of a
problem.
• This includes mapping out a solution
procedure and the form the program would
take.
•

Program design involves 4 stages namely:
i) Problem analysis
ii) Outlining the program structure
iii) Algorithm development
iv) Selection of control structure
• Problem analysis: Before we think a
solution procedure to a problem, we must
fully understand the nature of the problem
and what we want the program to do.
• Outlining the program structure : Once we
have decided what we want and what we
have, the next step is to decide how to do it.
• As a structured language C lends itself to
top-down approach.
• Top-down approach means decomposing of
solution procedure into tasks that form a
hierarchical structure.
• The essence of top-down approach is to cut
the whole program into number of
independent constitutent tasks and then cut
into smaller subtasks
• This approach will produce a readable and
modular code that can be easily understood
and maintained.
• It also helps us classify overall functioning of
a program in terms of lower- level functions.
iii) Algorithm Development: Step by step
procedure for each function is known as
algorithm.
• The most common method of describing an
algorithm is through the use of flow charts.
• The other method is pseudo code.
•

flow chart represents algorithm pictorially,
while pseudo code describe the solution steps
in logical order.
iv) Control structures: Any algorithm can be
structured using three basic control structure
namely:
a) sequence structure b) selection structure
c) looping structure
a) Sequence structure: sequence structure
denotes the execution of statements
sequentially one after another.
b) Selection structure: selection structure involves
a decision , based on a condition and may
have 2 or more branches
Eg: if else and switch statements.
c) Looping structure: looping structure is used
when a set of instructions is evaluated
repeatedly.
Eg: do, while, for statements.
•
1)
2)
3)
4)
5)
6)

A well designed program will provide
following benefits:
Coding is easy and error-free.
Testing is simple.
Maintence is easy
Good documentation is possible.
Cost estimates can be made more accurately.
Progress of coding may be controlled more
precisely.
•

2) Program coding : progrm coding should be
readable and simple to understand.
• Complex logic and tricky coding should be
avoided.
• The elements of coding include:
i) Internal documentation
ii) Construction of statements
iii) Generality of program
iv) Input/Output formats
3) Program testing: Testing is the process of
reviewing and executing a program with the
intent of detecting errors.
• The compiler can detect syntactic and
semantic errors, it cannot detect run-time and
logical errors that show up during execution of
program.
• Testing should include necessary steps to
detect all possible errors in the program.
• Testing process may include following 2
stages:
i) Human testing and
ii) Computer-based testing.
a) Human testing : It is an effective errordetection
Process and is done before the computer based
testing begins.
• Human testing methods include code
inspection by programmer, code inspection by
test group and review by peer group.
• The test is carried out statement by statement
and is analyzed with respect to check list of
common programming errors.
• In addition to finding errors, the programming
style and choice of algorithm are reviewed.
b) Computer-based testing: computer based
testing involves two stages namely:
i) Compiler testing and
ii) Run-time testing
• Compiler testing is the simplest of two and
detects undiscovered syntax errors.
• The program executes when compiler
detects no more errors.
• Run-time errors may produce run-time error
messages such as “null-pointer assignments”
“stack overflow”.
• When program is free from all such errors, it
produces output.

More Related Content

PPTX
Interrupts
PPT
Instruction format
PPTX
Computer system bus
PDF
Java Programming :Event Handling(Types of Events)
PPTX
bus and memory tranfer (computer organaization)
PPT
Interface
PPTX
Rules of Karnaugh Map
PPTX
Computer networks - Channelization
Interrupts
Instruction format
Computer system bus
Java Programming :Event Handling(Types of Events)
bus and memory tranfer (computer organaization)
Interface
Rules of Karnaugh Map
Computer networks - Channelization

What's hot (20)

PPTX
Instruction sets of 8086
PPTX
Segment registers
PDF
CSMA /CD PPT ON SLIDESHARE
PPTX
Analog and Digital Transmission
PDF
Poset in Relations(Discrete Mathematics)
PPT
Error Detection And Correction
PPTX
Instruction codes
PPTX
1.7. eqivalence of nfa and dfa
PDF
Symbol table in compiler Design
PDF
Deterministic Finite Automata (DFA)
PPTX
Flag Registers (Assembly Language)
PPT
Registers
PPT
Register transfer & microoperations moris mano ch 04
PPTX
Interrupts
PPT
Instruction set of 8086
PPT
Timing diagram 8085 microprocessor
PPTX
General register organization (computer organization)
PPTX
Synchronous and Asynchronous Transmission
PPT
Data Encoding
PDF
Semaphores
Instruction sets of 8086
Segment registers
CSMA /CD PPT ON SLIDESHARE
Analog and Digital Transmission
Poset in Relations(Discrete Mathematics)
Error Detection And Correction
Instruction codes
1.7. eqivalence of nfa and dfa
Symbol table in compiler Design
Deterministic Finite Automata (DFA)
Flag Registers (Assembly Language)
Registers
Register transfer & microoperations moris mano ch 04
Interrupts
Instruction set of 8086
Timing diagram 8085 microprocessor
General register organization (computer organization)
Synchronous and Asynchronous Transmission
Data Encoding
Semaphores
Ad

Similar to Steps for Developing a 'C' program (20)

PPTX
programming and languages (chapter 14)
PPTX
Programming_Lecture_1.pptx
PDF
Process-of-Program-Development-process.pdf
PPTX
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
PPTX
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
PPTX
PDF
65_96195_CC112_2014_1__1_1_week1.pdf
PPT
Ch1 principles of software development
PPTX
COM1407: Structured Program Development
PPTX
Software develop....
PPTX
Full Basic Programming in c material ppt
PPTX
introduction to computing & programming
PPT
Programming Fundamentals - Lecture 1.ppt
PPTX
Introduction to problem solving in C
PPTX
UNIT 2 ECSE-2.pptx
PPTX
Lecture 6.pptx
PPTX
Structured programming & Programming methodologies.pptx
PPT
Comp102 lec 1
PPTX
Programming C ppt for learning foundations
PPTX
Software Development
programming and languages (chapter 14)
Programming_Lecture_1.pptx
Process-of-Program-Development-process.pdf
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
COMPUTING AND PROGRAMMING FUNDAMENTAL.pptx
65_96195_CC112_2014_1__1_1_week1.pdf
Ch1 principles of software development
COM1407: Structured Program Development
Software develop....
Full Basic Programming in c material ppt
introduction to computing & programming
Programming Fundamentals - Lecture 1.ppt
Introduction to problem solving in C
UNIT 2 ECSE-2.pptx
Lecture 6.pptx
Structured programming & Programming methodologies.pptx
Comp102 lec 1
Programming C ppt for learning foundations
Software Development
Ad

More from Sahithi Naraparaju (16)

PPT
PPT FOR IDBSDDS SCHEMES
DOC
documentation for identity based secure distrbuted data storage schemes
PPT
SYSTEM ARCHITECTURE / UML DIAGRAMS FOR IDENTITY BASED SECURE DISTRIBUTED DATA...
PPT
over view of viruses
PPT
literature survey for identity based secure distributed data storage
PPT
Identity based secure distributed data storage schemes
DOC
Srs document for identity based secure distributed data storage schemes
PPT
66913017 java-ring-1217949449014046-9 (1)
PPTX
Self protecteion in clustered distributed system new
PPT
OVERVIEW OF ‘C’ PROGRAM
PPT
CONSTANTS, VARIABLES & DATATYPES IN C
PPT
constants, variables and datatypes in C
PPT
pre processor directives in C
PPTX
Self protecteion in clustered distributed system new
PPTX
A Batch-authenticated And Key Agreement Framework For P2p-based Online Social...
PPT
Haptic technology
PPT FOR IDBSDDS SCHEMES
documentation for identity based secure distrbuted data storage schemes
SYSTEM ARCHITECTURE / UML DIAGRAMS FOR IDENTITY BASED SECURE DISTRIBUTED DATA...
over view of viruses
literature survey for identity based secure distributed data storage
Identity based secure distributed data storage schemes
Srs document for identity based secure distributed data storage schemes
66913017 java-ring-1217949449014046-9 (1)
Self protecteion in clustered distributed system new
OVERVIEW OF ‘C’ PROGRAM
CONSTANTS, VARIABLES & DATATYPES IN C
constants, variables and datatypes in C
pre processor directives in C
Self protecteion in clustered distributed system new
A Batch-authenticated And Key Agreement Framework For P2p-based Online Social...
Haptic technology

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Programs and apps: productivity, graphics, security and other tools
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx

Steps for Developing a 'C' program

  • 1. STEPS FOR DEVELOPING A ‘C’ PROGRAM. BY SAHITHI NARAPARAJU
  • 2. INTRODUCTION • 1) 2) 3) • The program development process in C includes three important stages namely: Program design Program coding and Program testing All the three stages contribute to production of high quality programs
  • 3. 1) Program design : • It is a foundation for good program. • Program design basically concerned with development strategy to be used in writing program, in order to achieve solution of a problem. • This includes mapping out a solution procedure and the form the program would take.
  • 4. • Program design involves 4 stages namely: i) Problem analysis ii) Outlining the program structure iii) Algorithm development iv) Selection of control structure • Problem analysis: Before we think a solution procedure to a problem, we must fully understand the nature of the problem and what we want the program to do.
  • 5. • Outlining the program structure : Once we have decided what we want and what we have, the next step is to decide how to do it. • As a structured language C lends itself to top-down approach. • Top-down approach means decomposing of solution procedure into tasks that form a hierarchical structure. • The essence of top-down approach is to cut the whole program into number of independent constitutent tasks and then cut into smaller subtasks
  • 6. • This approach will produce a readable and modular code that can be easily understood and maintained. • It also helps us classify overall functioning of a program in terms of lower- level functions. iii) Algorithm Development: Step by step procedure for each function is known as algorithm. • The most common method of describing an algorithm is through the use of flow charts. • The other method is pseudo code.
  • 7. • flow chart represents algorithm pictorially, while pseudo code describe the solution steps in logical order. iv) Control structures: Any algorithm can be structured using three basic control structure namely: a) sequence structure b) selection structure c) looping structure a) Sequence structure: sequence structure denotes the execution of statements sequentially one after another.
  • 8. b) Selection structure: selection structure involves a decision , based on a condition and may have 2 or more branches Eg: if else and switch statements. c) Looping structure: looping structure is used when a set of instructions is evaluated repeatedly. Eg: do, while, for statements.
  • 9. • 1) 2) 3) 4) 5) 6) A well designed program will provide following benefits: Coding is easy and error-free. Testing is simple. Maintence is easy Good documentation is possible. Cost estimates can be made more accurately. Progress of coding may be controlled more precisely.
  • 10. • 2) Program coding : progrm coding should be readable and simple to understand. • Complex logic and tricky coding should be avoided. • The elements of coding include: i) Internal documentation ii) Construction of statements iii) Generality of program iv) Input/Output formats
  • 11. 3) Program testing: Testing is the process of reviewing and executing a program with the intent of detecting errors. • The compiler can detect syntactic and semantic errors, it cannot detect run-time and logical errors that show up during execution of program. • Testing should include necessary steps to detect all possible errors in the program. • Testing process may include following 2 stages: i) Human testing and ii) Computer-based testing.
  • 12. a) Human testing : It is an effective errordetection Process and is done before the computer based testing begins. • Human testing methods include code inspection by programmer, code inspection by test group and review by peer group. • The test is carried out statement by statement and is analyzed with respect to check list of common programming errors. • In addition to finding errors, the programming style and choice of algorithm are reviewed.
  • 13. b) Computer-based testing: computer based testing involves two stages namely: i) Compiler testing and ii) Run-time testing • Compiler testing is the simplest of two and detects undiscovered syntax errors. • The program executes when compiler detects no more errors. • Run-time errors may produce run-time error messages such as “null-pointer assignments” “stack overflow”. • When program is free from all such errors, it produces output.