subject

Python 9.13 lab: warm up: parsing strings(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, allenjill , allenjill, allenex: 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 allenerror: no comma in string. enter input string: jill, allen(3) using string splitting, extract the two words from the input string and then remove any spaces. output the two words. (2 pts)ex: enter input string: jill, allenfirst word: jillsecond 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, allenfirst word: jillsecond word: allenenter input string: golden , monkeyfirst word: goldensecond word: monkeyenter input string: washington, dcfirst word: washingtonsecond word: dcenter input string: q

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
7.23 main lab 7 - online shopping cart background this main lab extends the earlier prep lab "online shopping cart part 1". (you should save this as a separate project from the earlier prep lab). you will create an on-line shopping cart like you might use for your on-line purchases. the goal is to become comfortable with setting up classes and using objects. requirements this lab can be done individually or as pair programming. expanded itemtopurchase class (15 points) extend the itemtopurchase class as follows. we will not do unit testing in this lab so we will not be giving you the names of the member functions. create good ones on your own. create a parameterized constructor to assign item name, item description, item price, and item quantity (default values of "none" for name and description, and 0 for price and quantity). additional public member functions set an item description get an item description print the cost of an item - outputs the item name followed by the quantity, price, and subtotal (see example) print the description of an item - outputs the item name and description (see example) additional private data members a string for the description of the item. example output of the function which prints the cost of an item: bottled water 10 @ $1.50 = $15.00 example output of the function which prints the item description:
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Aselect query joins tables together by their a. table names. b. primary keys. c. first entries. d. field names.
Answers: 2
You know the right answer?
Python 9.13 lab: warm up: parsing strings(1) prompt the user for a string that contains two string...
Questions
question
Mathematics, 01.12.2020 19:50
question
English, 01.12.2020 19:50
question
Mathematics, 01.12.2020 19:50
question
Mathematics, 01.12.2020 19:50
question
Mathematics, 01.12.2020 19:50
question
Mathematics, 01.12.2020 19:50
Questions on the website: 13722367