Algorithm is to use simple sequence of feasible steps to
solve a problem. It can be used to deal with many problems in programming area.
For example, we can use algorithm to deal with the problem of the clock that we
made on earlier classes.
First, we should understand the problem. The clock is not
working properly because the second hand is moving slight faster than normal. Therefore,
we should develop a plan before really solving it. For example, make the second
hand speed to be (/ 360 60). Third, correct the second hand on DrRocket. Finally,
run the program and check out if the program works properly.
No comments:
Post a Comment