Answer:
The answers to these questions are given below in the explanation section.
Explanation:
The following are 3 properties and 3 methods of the object computer.
Solution
Properties:
- computer name;
- computer model;
- computer color;
- computer manufacturer
Methods:
- Turn on/off
- Do Wordprocessing
- Connect Keyboard/Mouse
- Charging
- Play sound
The following are 3 properties and 3 methods of the object computer.
Properties:
- Car Model;
- Car Manufacturer;
- Car Color
Methods:
- Car Run (Speed)
- Change Gear
- Open/Close Door
- Turn on/off
Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i = 0;
int matchValue = 0;
int numMatches = -99; // Assign numMatches with 0 before your for loop
userValues[0] = 2;
userValues[1] = 2;
userValues[2] = 1;
userValues[3] = 2;
matchValue = 2;
numMatches=0;
for(i=0;i<NUM_VALS;i++)
{
if(userValues[i]==matchValue)//cheking if the array element is equal to match value.
{
numMatches++;
}
}
System.out.println(numMatches);//printing the matchvalue.
}
}
Output:-
3
Explanation:
First I have set the value numMatches to 0 before the loop.Then I have user the for loop to iterate over the array.In the for loop I am checking that the array element is equal to the matchValue or not if it is equal then increasing the numMatches by 1.Then at last print the value of numMatches.
Answer:
The physical components that a computer is made of
Explanation:
as u can see these components and u can repaire these components if they got damaged