Every topic starts at New. Sign in and your practice counts.
Once you have completely understood the problem, the next stage is to design a solution. In solution design, you define how a software will meet the requirements and objectives of a problem.
There are two methods that are used to design a solution:
Let's discuss both in detail and solve some examples.
Flowchart is a diagrammatic representation of an algorithm. It describes what operations are required to solve a given problem.
Importance of flowchart in solving a problem
Flowchart illustrates the sequence of operations to be performed to solve a problem in the form of a diagram. Computers programmers draw flowcharts before writing computer programs. It provides an easy way to analyze and find solutions to problems. Once the flowchart is drawn, it becomes very easy to write the program in any computer language. It is very helpful in communicating the problem-solving method to other people. It also helps in finding and removing logical errors.
Steps for drawing flowchart
The flowchart developer must determine the following requirements for the given problem or algorithm before drawing a flowchart.
Start of the flowchart: Every flowchart should start with a trigger. The graphical representation of start of flowchart is oval shape.
Input to the flowchart: The flowchart designer must know what exactly the input to the flowchart is. The input is determined from the problem statement. For example, the given problem is to convert temperature from Fahrenheit to Celsius. Here, the input will be the temperature in Fahrenheit. The graphical representation of input is parallelogram.
Processing in the flowchart: The flowchart designer must decide what type of calculation is to be performed or what formula is applied to obtain the required result. For example, to find the
area of a triangle. The following formula is to be used:
Area Base × Height
The graphical representation of processing symbol is rectangle.
Decision making in flowchart: The flowchart designer must decide which control structure (sequence, repetition, or selection) are to be applied for the solution of the problem. For example, selection structure must be applied to print letter grade of a student based on the marks obtained. The selection structure will check in which range the marks fall and accordingly print the grade. Graphically the decision is represented with diamond.
Output: The flowchart must provide the required output. The
This figure is being prepared.
output is represented with a parallelogram symbol as well.
End of flowchart: The flowchart should have a defined end, and because of the possibility of multiple decision points, it may have multiple ends. For end of flowchart the oval symbol is used.
Flowchart to solve problems:
Flowchart 1: Flowchart to find sum, product, and average of five numbers.
From the statement of the flowchart, it is clear that sum, product and average are to be calculated and given are five numbers. The flowchart is shown below for this.
This figure is being prepared.
Flowchart 2: Flowchart to find the largest of three unequal numbers.
This figure is being prepared.
Flowchart 3: Flowchart to find the area of triangle when the lengths of height and base are given.
This figure is being prepared.
Software Tools for Flowchart Designing
For flowchart designing, different software tools are available to design the flowcharts. Some of the famous tools are Microsoft Visio and LARP software.
Microsoft Visio
Microsoft Visio is a tool for drawing various types of diagrams such as flowcharts, building plans, data flow diagrams, network diagrams, etc.
How to create flowchart in Microsoft Visio
a) Start Microsoft Visio
b) Click on the category of Flowchart
c) Double-click the Basic Flowchart
d) For each step, you wish to design in the process, drag a relevant flowchart symbol and place it onto your drawing.
e) Connect the flowchart shapes by holding the mouse pointer over the first symbol, and then releasing it on the to the other symbol you wish to connect to.
f) To place text into a shape, select it, and then type.
The Figure 2.16 shows a screenshot of flowchart designing in Microsoft Visio.
This figure is being prepared.
LARP
Logics of Algorithms and Resolution of Problems (LARP) is a programming language for rapid development of prototypes. However, unlike C++, Java and other programming languages, LARP uses semi-natural syntax. Therefore, it is very easy
This figure is being prepared.
Screenshot of LARP software
for non-programmers to
understand. LARP also allows algorithms to be expressed as flowcharts. A screenshot of flowchart designing is shown in Figure 2.17.
Concept map, like a flowchart, is another way of representing knowledge. A concept map is a graphical tool that represents concepts and relationships between them. This diagram is
This figure is being prepared.
a popular way to capture understanding of a topic, therefore, it can help with everything from brainstorming to decision-making.
The concepts in these maps are represented as boxes or circles, which relate to lines or arrows. These lines are labeled with linking words and phrases to represent the connections between concepts. There are different software tools for concept mapping, for example CmapTools, Mind Manager.
Example 1: Consider the sample diagram representing concept map of Water Cycle.
Main Concepts:
Evaporation: Water turns into vapor from oceans, lakes, and rivers
Condensation: Water vapor cools down to form clouds
Precipitation: Rain, snow, sleet, or hail fall from clouds
Collection: Water gathers in bodies like rivers, lakes, and oceans.
Abstraction: Identifying essential information and Removal of the unnecessary details to solution. Algorithm Design: This is actual designing of solution. This involves creating stepby-step plan of the problem solution. Algorithmic Thinking is a way of getting to a solution. Computing Problem is a problem that is solved step-by-step using computation.
Computational Thinking is a problem-solving method that computer scientists use as a skill to solve complex problems in a logical and systematic manner. Concept Map is another way of representing knowledge. '. Counting Problems: These problems work on the principle that if an event/decision has A number of choices and another decision/event has B number of choices then the total number of possible unique combinations would beAxB. Decision Problems: A decision problem is the situation for a given input that has Yes-or-NoAnswer.
Decomposition: Breaking down the larger problems into smaller/ manageable ones and working on them one by one. These smaller problems are referred as sub-problems. This way we simplify the problem and solve it easily. Flowchart is a diagrammatic representation of an algorithm. IPO charts are considered a handy tool that software designers use to solve problems. LARP: Logics of Algorithms and Resolution of Problems is a programming language for rapid development of prototypes.
Logical Thinking refers to analyzing a particular situation or problem using reason and accordingly reaching up to one or more decisions that are sensible. Pattern Recognition: Examine the problem for a pattern or similarities between previously solved problems. Problem is a challenge or situation that needs to be overcome using some action. Problem Solving defines the process of analyzing some situation and accordingly behaving to generate some response.
Example 2: Consider the below given sample diagram representing concept map of Video Game Development.
Concept Map for Video Game Development:
Main Concept: Video Game Development
Game Design
Programming
Graphics
Sound Design
Testing
This figure is being prepared.