Computers and Technology

Write a loop that reads strings from standard input where the string is either "land", "air", or "water". the loop terminates when "" (five x characters) is read in. other strings are ignored. after the loop, your code should print out 3 lines: the first consisting of the string "land: " followed by the number of "land" strings read in, the second consisting of the string "air: " followed by the number of "air" strings read in, and the third consisting of the string "water: " followed by the number of "water" strings read in. each of these should be printed on a separate line. assume the availability of a variable, stdin, that references a scanner object associated with standard input.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:40, Serenitybella
When the pc version of the spreadsheet program became available, the ibm pc quickly became the top-selling personal computer?
Answers: 3
image
Computers and Technology, 22.06.2019 13:30, AsiaDeas4078
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, ayoismeisalex
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
Do you know the correct answer?
Write a loop that reads strings from standard input where the string is either "land", "air", or "wa...

Questions in other subjects:

Konu
Mathematics, 15.10.2019 07:20
Konu
Mathematics, 15.10.2019 07:20