Create an algorithm and a flowchart that
will compute the sum of two numbers. If
the sum is below or equal to twenty, two
numbers will be entered again. If the sum
is above 20, it will display the sum.
Answers
Answer:
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values for num1, num2.
Step 4: Add num1 and num2 and assign the result to a variable sum.
Step 5: Display sum
Step 6: Stop
Flowchart:-
Answer:
written below-
Explanation:
An algorithm is a set of well-defined instructions in sequence to solve a problem.
Some good qualities of an algorithm are:
Input and output should be defined precisely.
Each step in the algorithm should be clear and unambiguous.
An algorithm shouldn't include computer code. Instead, the algorithm should be written in such a way that it can be used in different programming languages.
Produces desired output.
General flow of an algorithm is Start → Declare variables → Initialise variables → Perform operation → Display output → Stop.
#SPJ2