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);
Answer:
numbers = 1:1:100;
for num=numbers
remainder3 = rem(num,3);
remainder5 = rem(num,5);
if remainder3==0
disp("Yee")
else
if remainder3 == 0 && remainder5 == 0
disp ("Yee-Haw")
else
if remainder5==0
disp("Haw")
else
disp("Not a multiple of 5 or 4")
end
end
end
end
Explanation:
- Initialize the numbers variable from 1 to 100.
- Loop through the all the numbers and find their remainders.
- Check if a number is multiple of 5, 3 or both and display the message accordingly.
Answer:
"Hard copy", "Soft copy", "voice synthesizer", "flat panel", "projector".
Explanation:
- The above-defined words will fill the above blanks. Then the above sentence above below meanings:-
- The hard copy is ab printed form of soft copy which is generated by the printer device.
- The soft copy is displayed on the monitor screen.
- The voice synthesizer is used to convert the text onto a speech.
- The flat-panel device has a low volume and weight. There is much display which is in this type.
- The projector is used to display on the wall.
Explanation:
As the qn was copy pasted from another document...the qn seems incorrect... and incomplete..
pls see to it and attach the correct qn...
sorry
Students can perform several tasks in a digital environment. For example, they can watch instructional videos, take notes, and participate in peer discussions.
this is the right answer .just did it