answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: I have a computer science class and I need to make a java file that executes with conditional operations and iterative operations. How do you make a java file with conditional and iterative?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which component of a computer system executes the program and how?

C.p.u. Executes the program


How does computer do math so fast?

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.


What is the relationship between mathematics and computer?

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.


Definition of a program in UNIX?

Something what the computer executes.


What does a processor do in a computer?

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.


What is central processing unit and its uses?

A CPU is a part of the computer that interprets and executes information.


Does The Master Boot Record executes every time a computer boots up?

yes it does


What is the meaning of this term Stored Program Concept?

a program that is stored in the memory of the computer that executes it


What is the chip that executes demands in a computer?

That is the microprocessor, some call it the CPU (Central Processing Unit)


What part of the computer executes instructions to to process information?

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


What is the meaning of Micro Computer?

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.


The Master Boot Record executes every time a computer boots up?

yes.. whats the question?