subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:40
Hello my name is mihai and i need your : )i have to do a python project in computer science and i’m really busy with my mocks this period of time besides this i’m not good at coding so could someone pls pls pls sort me out ? i actually beg ; ))
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
Pthe price of tickets in a group when a purchased in bulk can be found with the equation c=px+24 were c is the cost, p is the number of people,and x is the price per ticket. what is price of of each ticket if it costs $189 to buy tickets for 15 people ? a $8 b $24c $9d $11 show work
Answers: 1
question
Computers and Technology, 22.06.2019 07:00
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
You know the right answer?
Write a loop that reads strings from standard input where the string is either "land", "air", or "wa...
Questions
question
Mathematics, 01.12.2020 18:40
question
Mathematics, 01.12.2020 18:40
question
Biology, 01.12.2020 18:40
question
Chemistry, 01.12.2020 18:40
question
Mathematics, 01.12.2020 18:40
Questions on the website: 13722360