72.0k views
1 vote
1 Think about the five steps to writing an algorithm. Why is each step necessary?

2 Why is it important to be precise when writing computer code?

3 Some problems are better solved by a computer and some are better solved by humans. How do you know when a problem should be solved by a computer or by a person?

User Dyllon
by
7.4k points

1 Answer

1 vote

Answer and Explanation:

1. The steps in writing an algorithm include:

Step 1: obtain description of problem

Step 2: Analyze the problem. ...

Step 3: Develop a high-level algorithm.

Step 4: Refine the algorithm by adding more detail. ...

Step 5: Review the algorithm

In describing our problem we aim to define our problem and know exactly what problem we are looking to solve. We analyze and breakdown this problem to know where it begins and ends and therefore be able to understand it and develop algorithm to solve it. A high level algorithm is developed to fInd the main part of the problem and leave the details for later . We refine our algorithm and give more detail to further algorithm. We go ahead to review our algorithm to be sure it would solve the problem and ask questions like does it solve the problem and how much? Can the algorithm be simplified?

2. Computers are machines and therefore only understand instructions in the form of code languages. Coding must be precise because there is particular syntax and semantics in computer coding languages which if not followed cannot be understood by the computer

3. When a problem is repetitive and tedious at same time, it should be coded into computer programs and therefore automated

User Ahmed Sunny
by
6.4k points