This is what you need in your class code.
1. Main Method - So that you can execute it
2. If - else block - Where you have conditions
3. For or while loop - Where there is iterative code
Note: I can write the code here but wiki is not the place to get your homework done.
Something what the computer executes.
Unconditional statements are statements that are invoked unconditionally. Conditional statements have a controlling expression, while unconditional statements do not. For example: void f (bool b) { if (b==true) do_something(); // conditional statement (controlled by the expression b==true) do_something_else(); // unconditional (executes regardless of b's value) }
In a microprogrammed processor, the hardware doesn't directly execute the instructions in the ISA  The hardware executes very simple micro-operations that are used to implement the instructions  Each instruction specifies a sequence of micro-operations that are used to implement the instructions
The CPU executes program instructions.
An interpreter is a specialized kind of computer program. This program executes instructions written in a programming language that is not the native coding.
C.p.u. Executes the program
The speed at which a computer executes mathematical operations is very fast compared to, say, mental arithmetic in an average human's brain, because the computer uses specialized hardware to perform elementary arithmetic and trigonometric mathematical operations at extremely high speed, and very high clock frequencies which allow combining many of those elementary operations into more complex mathematical operations.
Computer science is broadly concerned with the application of both mathematics and logic to the task of designing and controlling computers. Certain branches of mathematics are of special value in computer science such as boolean algebra and discrete mathematics. One place where math is applied is in the microprocessor unit of a computer which executes a stream of simple operations including arithmetic operations.
Something what the computer executes.
It is the main control unit in a computer. It is like the 'brain' of the computer. It does controls all hardware, and executes software commands, like: Math Calculations Logical Operations (Comparison, differencing, etc.) Processing data from memory If there is no processor in a computer, the screen will simply stay blank when you power on the computer, and nothing will happen until you switch the computer off. You NEED the processor in order to use the computer.
A CPU is a part of the computer that interprets and executes information.
yes it does
a program that is stored in the memory of the computer that executes it
That is the microprocessor, some call it the CPU (Central Processing Unit)
The Central Processing Unit, or CPU is responsible for carrying out the instructions of a computer program. Playing the role of the "brain", the CPU carries out the basic arithmetical, logic and input/output operations of the system. You can read more about the CPU here: http://en.wikipedia.org/wiki/Central_processing_unit
A micro computer is a computer with a microprocessor as its central processing unit. A microprocessor incorporates most or all of a CPU. A CPU (central processing unit), executes computer programs.
yes.. whats the question?