subject

6.6 parsing strings (java) (1) prompt the user for a string that contains two strings separated by a comma. (1 pt) examples of strings that can be accepted: jill, allen jill , allen jill, allen ex: enter input string: jill, allen (2) report an error if the input string does not contain a comma. continue to prompt until a valid string is entered. note: if the input contains a comma, then assume that the input also contains two strings. (2 pts) ex: enter input string: jill allen error: no comma in string enter input string: jill, allen (3) extract the two words from the input string and remove any spaces. store the strings in two separate variables and output the strings. (2 pts) ex: enter input string: jill, allen first word: jill second word: allen (4) using a loop, extend the program to handle multiple lines of input. continue until the user enters q to quit. (2 pts) ex: enter input string: jill, allen first word: jill second word: allen enter input string: golden , monkey first word: golden second word: monkey enter input string: washington, dc first word: washington second word: dc enter input string: q lab

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
You know the right answer?
6.6 parsing strings (java) (1) prompt the user for a string that contains two strings separated by a...
Questions
question
Mathematics, 29.10.2020 20:10
question
Advanced Placement (AP), 29.10.2020 20:10
question
Mathematics, 29.10.2020 20:10
question
History, 29.10.2020 20:10
question
Mathematics, 29.10.2020 20:10
question
History, 29.10.2020 20:10
question
English, 29.10.2020 20:10
Questions on the website: 13722363