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, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
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
Mathematics, 06.10.2020 07:01
question
Chemistry, 06.10.2020 07:01
question
Computers and Technology, 06.10.2020 07:01
question
Mathematics, 06.10.2020 07:01
Questions on the website: 13722361