Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.14 Ch 3 Program, part 3: Grocery List This program is a take on the cassic brogramming assignment of creating a grocery list your task

image text in transcribed

3.14 Ch 3 Program, part 3: Grocery List This program is a take on the cassic brogramming assignment of creating a grocery list your task is to take the one the food by drink item, and the amount for each item as inaut and create a ocey ist string that can be dispayed to the user. For example the parts in bald WCnco by the user. Omered, the user input will be a llo lil then rules Sling that may contain a spare charante 1. Sice name. cleaning trailing whitespace, all characters shoulde.pper , the can ba mult ple wedst, 2. All locan cinn leadincan railin Hede al charar HSS. De Wise Deo is an exempe of input in bold, for the grocerylis program ach amountiveynt in the input and followed by their carencing food dr nk camount corresponds to food1 amour: corresponds to drnk, etc). Sicry the Farmer's Market amount 1: 5 foodi: Apples smont2: 12 foad: Eogs amint3:3 dink milk Weight: 1.5 food: CHEESE Weight2.3 focd4: potatoes The resulting Grocery list is I 30:ng to a MARK'S MAKKET ED ES: upp.no 3 Fallon otrok 1.5 pounds of cheese 3.0 pounds of potatoes his con un is of gallans, and the forth and oth items in units of Note there should always be 5 items in the grylls, with t pounds Requirements: You mu s t oule contain all iroul exter. Samme instance and sem is putih values will rextDouble next) end rest_rel. 211.pl .. m ineures cell TemakaGYOCAYYLISI. Item c arnis passed and precares the entire grocery list using all the 1 carameters and returning one long Sting . Your t r ylit Virsiniry nuynur wirpul wall.es Your grocery list must contain you'na ne as you entered it in thef e reader comments. It should be a string literal and not cassed in 35 a parenter For example, the start ofynur groextry list Gary Lis for Bucky Radger The methoe stub for nakeCroccrylist is: Re Urns single String LL is forme. Led 08 dycocery lil 1. VOL._018 all parameters. You min iraun your hands tac list: 15 styire Licore JUL pass is YOU! 48 perede er. You die L LU: Le bene ubio the Header Camcnt. here are 5 13uto niwe: the Jes i pie Ananantain mata. Il rp ped), and ... Oput would do i hou-do-ready o cene in n after this retired MON HOSTFY TYF ORDER OF PARAMETERS - - NT400 HFRDER. If you da, you may not pass the ultitie rezz that were to gece y ecbanizazon. parar. Store - Epler ann1 parar arcuat2 para waigati Eurer weight? kparar toodi kporer tood. Eine food perAr draak Ereur vocery liv LLULL. 11 palace your LE. puc slalic Sli: nakuoveryis.IS.I_HU sluce, il doill, in -2, int amant, ADA WA Hothweigt, ing tl , Sring tood, Stri: Ecce3, string food1, SI-1 drik: { 4711 IN 20-Y Note that you may change the nakeGroceryList parameter names to be more mesningful, but be sure to keep the order and data types the same. It is cd pactice les :: Terent comb inesofincul with your melno note that we will test your Methodi in S cilic input for this leb. When calling nakeGroceryList, the arguments passed are by posit on the order in which they 8100 up as pare meters in che melodies the planeternes con mall nutside herenc lomletalhe cery is NOT er with rewline character. 3.14 Ch 3 Program, part 3: Grocery List This program is a take on the cassic brogramming assignment of creating a grocery list your task is to take the one the food by drink item, and the amount for each item as inaut and create a ocey ist string that can be dispayed to the user. For example the parts in bald WCnco by the user. Omered, the user input will be a llo lil then rules Sling that may contain a spare charante 1. Sice name. cleaning trailing whitespace, all characters shoulde.pper , the can ba mult ple wedst, 2. All locan cinn leadincan railin Hede al charar HSS. De Wise Deo is an exempe of input in bold, for the grocerylis program ach amountiveynt in the input and followed by their carencing food dr nk camount corresponds to food1 amour: corresponds to drnk, etc). Sicry the Farmer's Market amount 1: 5 foodi: Apples smont2: 12 foad: Eogs amint3:3 dink milk Weight: 1.5 food: CHEESE Weight2.3 focd4: potatoes The resulting Grocery list is I 30:ng to a MARK'S MAKKET ED ES: upp.no 3 Fallon otrok 1.5 pounds of cheese 3.0 pounds of potatoes his con un is of gallans, and the forth and oth items in units of Note there should always be 5 items in the grylls, with t pounds Requirements: You mu s t oule contain all iroul exter. Samme instance and sem is putih values will rextDouble next) end rest_rel. 211.pl .. m ineures cell TemakaGYOCAYYLISI. Item c arnis passed and precares the entire grocery list using all the 1 carameters and returning one long Sting . Your t r ylit Virsiniry nuynur wirpul wall.es Your grocery list must contain you'na ne as you entered it in thef e reader comments. It should be a string literal and not cassed in 35 a parenter For example, the start ofynur groextry list Gary Lis for Bucky Radger The methoe stub for nakeCroccrylist is: Re Urns single String LL is forme. Led 08 dycocery lil 1. VOL._018 all parameters. You min iraun your hands tac list: 15 styire Licore JUL pass is YOU! 48 perede er. You die L LU: Le bene ubio the Header Camcnt. here are 5 13uto niwe: the Jes i pie Ananantain mata. Il rp ped), and ... Oput would do i hou-do-ready o cene in n after this retired MON HOSTFY TYF ORDER OF PARAMETERS - - NT400 HFRDER. If you da, you may not pass the ultitie rezz that were to gece y ecbanizazon. parar. Store - Epler ann1 parar arcuat2 para waigati Eurer weight? kparar toodi kporer tood. Eine food perAr draak Ereur vocery liv LLULL. 11 palace your LE. puc slalic Sli: nakuoveryis.IS.I_HU sluce, il doill, in -2, int amant, ADA WA Hothweigt, ing tl , Sring tood, Stri: Ecce3, string food1, SI-1 drik: { 4711 IN 20-Y Note that you may change the nakeGroceryList parameter names to be more mesningful, but be sure to keep the order and data types the same. It is cd pactice les :: Terent comb inesofincul with your melno note that we will test your Methodi in S cilic input for this leb. When calling nakeGroceryList, the arguments passed are by posit on the order in which they 8100 up as pare meters in che melodies the planeternes con mall nutside herenc lomletalhe cery is NOT er with rewline character

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago