Answer:
the first one on the left row to the 3rd one in the right row
the second one on the left row to the top one in the right row
the third one on the left row to the middle one in the right row
Explanation:
looks like you got it right though already
Answer:
1- Computer hardware includes the physical parts of a computer, such as the case, central processing unit (CPU), monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard. By contrast, software is the set of instructions that can be stored and run by hardware.
2-Computer hardware includes the physical parts of a computer, such as the case, central processing unit (CPU), monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard.
3-
Answer:
public static void dashedLinses(int num){
if(num>0){
for(int i=1; i<=num; i++){
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
- The function is written with Java programming language
- As required by the question, it accepts an int parameter and returns nothing.
- An if statement is used to check the condition of n greater than 0
- Using a for loop, it outputs a line whose length is determined by the value of the parameter
- A complete code with the main method is given below
<em>public class num9 {</em>
<em> public static void main(String[] args) {</em>
<em> int num= 2;</em>
<em> dashedLinses(num);</em>
<em> }</em>
<em> public static void dashedLinses(int num){</em>
<em> if(num>0){</em>
<em> for(int i=1; i<=num; i++){</em>
<em> System.out.print("-");</em>
<em> }</em>
<em> System.out.println();</em>
<em> }</em>
<em> }</em>
<em>}</em>
Answer:
Each pixel in an image is made up of binary numbers. If we say that 1 is black (or on) and 0 is white (or off), then a simple black and white picture can be created using binary. To create the picture, a grid can be set out and the squares coloured (1 – black and 0 – white).