I dont know if you need more people to answer so.. my mom, dad, brother, best friend 1, best friend 2, grandma, grandpa, cousin, aunt, uncle
The loop terminates when "xxxxx" is read in. If the word is land, the string followed by "land" get outputted. The same with air, and water.
Explanation:
int land = 0;
int air = 0;
int water = 0;
String word = "";
while(!(word.equals("xxxxx"))) {
word = stdin.next();
if(word.equals("land")) {
land++;
}else if(word.equals("air")) {
air++;
}else if(word.equals("water")) {
water++;
}
}
System.out.println("land:" + land);
System.out.println("air:" + air);
System.out.println("water:" + water);
Class B would be the correct answer.
Answer:
I believe "..." means that you need to go further in depth with your writing.
Answer:
3
Explanation:
The sequence seems to follow a 2-step pattern.
1)Divide the first number by 5 to get the second number.
2)Add 10 to the second number to get the third number.
75/5 = 15
15 + 10 = 25
25/5 = 5
5 + 10 = 15
---> 15/5 = [3] (Answer)