Answer:
18 Watts
Explanation:
For this problem, we simply need to understand the relationship of power to voltage and current. This relationship is derived from Ohm's law:
Power = Voltage * Current
Given this equation, we can say the following to find the power consumption of the motor:
Power = 12volts * 1.5amps
Power = 18 Watts
Hence, the motor is consuming 18 Watts of power.
Cheers.
Answer:
import java.util.Scanner;
public class FindMatchValue {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_VALS = 4;
int[] userValues = new int[NUM_VALS];
int i;
int matchValue;
int numMatches = -99; // Assign numMatches with 0 before your for loop
matchValue = scnr.nextInt();
for (i = 0; i < userValues.length; ++i) {
userValues[i] = scnr.nextInt();
}
/* Your solution goes here */
numMatches = 0;
for (i = 0; i < userValues.length; ++i) {
if(userValues[i] == matchValue) {
numMatches++;
}
}
System.out.println("matchValue: " + matchValue + ", numMatches: " + numMatches);
}
}
Answer:
honestly i don't know ok and you are pretty if that is you in the pfp
Explanation:
Answer:
a. array1 = array2; Illegal
b. cout<< array1; Illegal
c. cin >>array2; Illegal
Explanation:
a. array1 = array2;
Illegal, since the assignment operator doesn't work to directly assign the values into other array.
b. cout<< array1;
Illegal, since the index number in not defined, if you want to print all the elements in the array1 then run a for loop to iterate over the entire loop.
c. cin >>array2;
Illegal, since the index number is not defined, if you want get input from the user then run a for loop to iterate over the entire loop.