Chapter 1 Problem Solving and Introduction To C
Chapter 1 Problem Solving and Introduction To C
Program
Software
System, Computer
Source Program
Object Program
programmer
Problem solving
4. Bottom up strategy
Factors to consider when selecting a technique for solving a
problem.
Nature of the problem
Familiarity with the technique
Cost of the technique
Reliability of the technique
Efficiency of the technique
Robustness of the technique
Accuracy of the Technique
Flexibility of the Technique
Tools of problem solving.
1. Flowcharts
2. Algorithm
3. Program
Flowcharts
Diagrammatic / Pictorial representation of the solution process to a problem.
Uses shapes and symbols of different types to represent the set of activities in
problem solving.
A graphical representations of steps.
• E.g, Oval Rectangle Arrows
• Decision
Benefits of a flowchart
1. Easier to understand compare to Algorithms and Pseudo code.
2. Helps to clarify complex processes.
3. Communication:
Better way of communicating the logic of a system to all concerned or involved.
Helps team members gain a shared understanding of the process and use this knowledge
to collect data, identify problems, focus discussions, and identify resources.
4. Effective analysis:
Problem can be analyzed in more effective way tea4 reducing cost and wastage of time.
5. Proper documentation:
Serve as a good program documentation, which is needed for various purposes, making
things more efficient.
6. Efficient Program Maintenance:
Helps the programmer to locate errors and put more efforts more efficiently.
7. Efficient Coding:
Guidelines for Developing Flowcharts
Flowchart can have only one start and one stop symbol
• Examples:
Programming methodologies
• https://hackr.io/blog/procedural-programming
Introduction to C programming language
Machine independent.
Compilers used in C programming
Borland C ...
Dev C
Turbo C
Code block.
Clang
C Free
3. Saving a program