subject

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
Prompt the user for a string that contains two strings separated by a comma. (1 pt) examples of stri...
Questions
question
History, 10.06.2021 18:20
question
Mathematics, 10.06.2021 18:20
question
Medicine, 10.06.2021 18:20
Questions on the website: 13722360