Answer:
A for loop is a block of code where a certain instruction repeats a certain amount of times.
Yes, you can use a variable instead of a number in a for loop.
Explanation:
For example, you're using a for loop and you want to repeat it a certain amount of times, but you want to take user input. You would ask the user for their input and assign it to a variable, then use that variable for the for loop.
Answer:
Adrian requires a high speed internet connection and a codec player to download and run movie on his system.
Explanation:
There are some basic requirements of the computers that, can be used to watch the movie on the computer.
1. RAM
2. Storage space to store the movie
3. High Speed Internet: As the movie is on the internet, to download it from internet, bandwidth and speed of internet is required.
4. Video Codec Player is required to play a digital movie on laptop or system.
Answer:
public class ANot {
public static void main(String[] args) {
int numberOfSides = 20;
boolean isQuadrilateral;
if(numberOfSides==4){
isQuadrilateral = true;
System.out.println("The triangle is quadrilateral");
}
else{
isQuadrilateral=false;
System.out.println("The triangle is not quadrilateral");
}
}
}
Explanation:
- Create and Initilize the int variable numberOfSides (You can also receive this from a user using the scanner class for example).
- create a boolean variable isQuadrilateral
- Use if and else statement to check if numberOfSides ==4 and assign true to isQuadrilateral else assign false
Answer:Computers only understand machine code - they do not understand high-level language code. Any high-level programming language code has to be converted to executable code. Executable code is also known as machine code which is a combination of binary code 0s and 1s.
Explanation:
Have parental controls on certain sites