Computer Science, asked by minamalikminaqueen12, 4 months ago

write three algorithm and three flowchart .examples ​

Answers

Answered by brinlyqueen
0

Answer:

An algorithm is a step-by-step analysis of the process, while a flowchart explains the steps of a program in a graphical way. Algorithm and flowcharts helps to clarify all the steps for solving the problem. ... Beginners find it difficult to write algorithm and draw flowchart.

Answered by ayushsingsingh1234
0

Explanation:

related to homework.

I would recommend doing the flowchart first, and in fact I recommend using an easier problem as a warmup. Try doing “find the minimum of two numbers.”

Flowcharts have some basic elements like “start”, “end”, decisions, and actions. Look at your courseware, and find the elements & symbols corresponding to those four. You’ll use those in the final draft of your flowchart.

Start off with a whiteboard, or scratch paper. This stage is about getting the ideas right - neatness can wait. You must have a single “start” element, so draw that.

What do you start with? Two numbers, call them a and b. What do we need to do now? I’ll assume we need to print a or b (whichever is smaller). That means we have a decision to make. So from “start” we can go directly to a decision (usually a diamond shape) that compares a and b.

Every decision point in a flowchart should have exactly two exit paths, usually marked “yes/no”. Review the comparison you’ve made in the decision diamond. Based on the outcome, the yes and no paths should each point to an appropriate action, such as “print a”.

We now have two possible actions based on a decision, which satisfies the problem. The last step would be to connect the exit paths from each action to a common “end” symbol.

Test your flowchart by walking through it from “start” to “end” for each possible scenario. Really trace it, and don’t take anything for granted. Also, try to think of “unusual” examples.

This

Similar questions