Program Development Notes
Program Development Notes
- c) decision
2. Writing the program task in simple sequence and in simple English is known as:
- a) algorithm
- b) sorting
- a) flowchart
- b) pseudocode
---
2. Design: Dividing the solution into small modules, designing each module separately using
4. Testing: Verifying if the program executes correctly, identifying and correcting any errors.
5. Documentation: Maintaining written information about the program for both developers and users,
---
3) What are various symbols used while drawing a flowchart? Explain them.
1. Terminal (Start/Stop): Represented by rectangles with rounded corners, used at the beginning
4. Decision Box: Represented by diamonds, used for decision-making steps where conditions are
checked.
6. Connector: Represented by small circles, used to connect parts of a flowchart, especially when
---
4) Define and explain the algorithm concept with a suitable example.
An algorithm is a logical sequence of steps prepared for solving a problem, written in simple steps
2. Transfer B value to A.
3. Transfer X to B.
---
---
used to formulate and understand algorithms, illustrating loops, decisions, inputs, and outputs.
Advantages of Flowcharts:
2. Systematic analysis.
3. Minimum length.
4. Minimization of errors.
---
a) Sorting: The process of arranging data items in ascending or descending order using algorithms
b) Pseudocode: A programming analysis tool used for planning program logic using simple phrases
in natural language. It focuses on the program's logic without following strict programming syntax.
---
- Modular Programming: A programming method where a main module controls various submodules
(functions or procedures). Each submodule handles specific tasks, allowing for reuse and simplicity
---
1. Selection sort
2. Bubble sort
3. Shell sort
4. Heap sort
---
Binary Searching: A method to search a sorted list by repeatedly dividing the list in half.
Procedure:
3. If the desired value is smaller, search the left half; if larger, search the right half.
Applications: Used to search ordered arrays and to find a target element's position.
Limitations: Requires the list to be sorted and allows random access to the middle element.
---
1. Problem Analysis: Understanding the problem requirements, identifying the inputs, outputs, and
2. Algorithm Development: Writing down the sequence of steps (algorithm) that describe how to
3. Flowchart Design: Drawing a flowchart to visualize the logic of the algorithm. This helps in
5. Compilation/Interpretation: Converting the written code into machine language using a compiler or
interpreter.
6. Testing and Debugging: Running the program with various inputs to identify and fix any errors or
bugs.
7. Documentation: Writing notes and comments for better understanding and maintaining the code.
12) Write algorithms and draw flowcharts for the following problems: