The step by procedure for solving a problem is called algorithm. It gives the sequence in which these steps are taken for solving the problems. In an algorithm the problem is divided into a number of simple steps. All steps are arranged in an order. Each step is solved independently. Solution of all steps in an order in which they appear in the algorithm gives solution to the problem.
What is the functions of personal computer
(1)It has the ability to store instructions for solving problems.
(2)It has the ability to recall instructions whenever they are to be executed. The instructions are stored in the computer memory. Each memory location has an address. The computer uses memory addresses to recall the required instructions for execution.
(3)It has the ability to control the order of execution of the program instructions.
(4)It has the ability to solve atomic or elemental instructions.
Atypical computer has the ability to solve all problems with the help of a few simple arithmetic and logical operations. These operations are:
Adding two numbers.
Subtracting one number from another number.
Multiplying any two numbers with one another.
Dividing one number by another number to find out the quotient and the remainder.
Comparing two numbers to find out which number is larger.
Shifting control of execution from one instruction to the next instruction.
No comments:
Post a Comment