90% done confused on the last part.in c++ . dont edit the wording just add correct solutions
34.2 LAB*: Program: Online shopping cart (Part 2) (7) Eatend the itemteperichabe cass per the fotowng apecificationt - Aublic enember functiont PeirtilemDenctioton0 - Outisita the item name and descoiption - Priate data mentber Ex af Pexidem Cost ouiput Babtuini Water 10 i 31=310 I. of Printhembescriptong ouleut bestiea Wateri beer tared tz mis. (2) create inies new fietr. - SheppingCarth-Class declaraion - Shogpengbartcop-clast definated cempelingintate ilieot - Defaitconativen - Pararmererizad oonstructor which takel tne customer name and date as parametera (t pt) - Pilvate data mernbers string custocnefName-initialized in default conttuctor to 'none' a string curtentoate-imtialized in defaul constructor ta "Janualy 1, 2016" 4 vector c themiopurchose > cartliemt - Public member functions - GeicustomenNamey accessoc (1 pt) - GetDated accessor (1 pt) Adtiteme) - Addi an itein to cartifens voctor Has a parameter of type ltem FoPurchase. Does not retumanghing Renoveliem(0) * Removes fen from gartieme vectoc. Has a dinng (an itemt narvel parimete Does net retim anything - if item rame cannot be fourd, outrit this meisage xteen not cound in eart. Boching renovea. Madivisem0 modity item in cart. Getenimitemaincine (2 pia) - Retians quamity of al herms n cart Has no paramotor - Cercastgicano (2 oti) - Butermines and feturis the batal cost of toment in cart. Has no parameters - Prirt Totall - Dulputin total of obiocis in cart. - if cart is emply, output tein mensage snopprade casy is eqrerx - Einigescriptionial - Culpuri each item de desipion. Ex of Peintfutald odtinti John Doe's Shopping Cazt - February 1,2016 Number of Itemeit 8 . Chocolate chipi 5 in =$15 Poverbeate 2. Hadphones 1 y 5120j=5128 Total =3521 Ex of PrintDesonptions() output. Johe beeta shopping Cart - Februaty 1,2016 Altein Deacriptions Hike Romainosy volt color; welybtitesing Hhoes Checolate chipol seini-yweet Rowarbeate 2 Hetadphoneat fitusooch headphonn: (3) in maing, prompt the uner for a cuitomer'a name and todays date. Output the name and dete onsite an object of typit ShoppingCart: (7) pt) Ex Johin poe Erter toduy? at date: Tutzuary?, 2016 Ex isialise I.*Addfteececartd-Ilennevitainticesattif-LiamgeItemguantity1-ootpenktesidederijtanixa-Qutrutsbepyitieeart99+1t -Mairteenjcekartd-Hempeitrmtranrarta.-Clakitinitenduantityi.-Outentitentdeaczirtuone6.cutputshaprise5art7iginiti (7) impimpont Outuut thopoing cortmeru option in Exocule Menu0 f ptos. Ext? Wusher of teetar in Giseolatichina if it = ats Covebeate 2 Hendpbotiea + i 4121=4130 Fatafi 1894 rhe peruetiritinil Iie. hOD 1704 TO CNMI Job tiEM TO CAkT tinter thi t topt nane t= Hike franateed Hitet theilicen unsoruption Volt oolde, Meightinftig shoeil Enter tik t ter prices (it) Intex the item qiancisyt tis. chiogetich chipl Fx ivan ITme ook) tinter the deeminute: Itive Rrituleas Eniot the dorimuantitya Current lle: Item foPurchase h. taad dufiat fampl b *include estring> 6. using ranespace std; 6. class Itemiopurchased private: string itemllane: int itemPrice; int itempuantity. Cextented 14 string itertescriptiond 15 Bablic: 16 Itemopurchose( ); 17. Itemicpurchase (string nane, string description, int price, lat quantity). in lasetters. void Settiane(string none); votd Setircee(int price): vold setquantity (int quantity); Prgatters striny Getkane ( ) canst. int GetPrice(3 const: int Getquantity() const; Cheint void Print Itentost(J: Pextented setter. vold SetDescription(string description); Vexthntied-getter string GetDescription(? const; Pextented priat vokd Drintitedescription:; Current file. Item ToPurchuse cpp * Lnat de 2. Ainclude ciostreano 3. Itinclude estrings 4 using nemespoce std; 5: Hinclude "IterToPurchase.h" 7 ItenToPurchase: ItemTopurchase( ) 13 14. Itemtollurchose: Itemtopurchosecstring none, striria description, int price, int quentity) 151 16 i tentiont = none 17 iteeppice = price, 16. itemquantity = quantityi 19 itenDescription - description: 211 21 2 iset 22. yoid IterToPurchase:- Setione(string none) (? 23 itemNase = nene 24241 vokd IteafoPurchase: : Setprice(int:price)( 26 itenPrice = price. 27 1 2n vold Itemtopurchase: Setquantity (int quantity)t in itemquentity - quantity: =33(3) 31 vold itenlo\%urchose: setDescriotiontstring descriotion)f. Cunent file itemToPurchase cpp - Lmad defak ingotein 31 void 1temtopurchase: Set0escription(string description)f 32. Iteobescription - description; 33. 1 34 /rget 35 string itentofurchase: Get Wone Q : const! 36 return itentlone; 37 ) 38 int ItenTopurchase Get.Price( sonstf 39 return ftens rice; 4n 1. 41 int Itemtopurchase: Getquantityo constl 42. return itemquentity: 43. 3 44. string Itemfopurchase i: Getbescription const( 45) return itembescription: 46.) 4) Perinting As voia Itenfopurchase:iprintitencosto x 43 void Itenropurchase iprintitencostor 50.1 51 wold Iteritohurchase : Printitenoescription 3 I Aanyour progrum at oken as youd like, before 31 hmating for gading belone type any heedeif roinet yalues in the filst box then cick Pun pregram and obairve the program gouiput on the 1 Type your code here * Itfndef SHOPPING_CART_H 3 define SHDPPING_CART H H 4 in inciude cyector? 5 Alnctude estring? 6. Itinclude "ItemToPurchese. h" 7 using nanespoce std 9 class Shoppingcart! 18 private: 11 string customerlane: 12 string eurrentfate: 1) vectoritenfopurchase certitems; 14 public: 14 Shopping(art(): 16 ShoppingCart cstring custonerkone, string date). 17 string GetCustoneifane() const! 1i string Getbate(d const: 19 votd MdaItencitentofurchase iten): 20 wbid Removelten(sting itentane): 21 votd Modifylten(IteeTnPurchase iten) 22 int Gethumitensin(art() const; 23 int Getcostofcart ( ) const: 24 votd PrintTotalopt 25. vald Printoesceiptionsoi 20 i. 28 isendith Aun your program as ofien as youdilike belome mutmatiog for gigding leliuw lype ary nevied reut values in the firsl bos. then eick. Aun program and abaerve the freggans outout if the sexaed bor 1 - Type your code here of 2. "include "Shoppingaartih" Biviclede "ItenfoPurchase, h " 4 sinclude ciostreats 5 ShoppingCarti ShespingCart:CX customerkone = none" currentDate - "Jonuary 1 . 2etg"; 3 9. ShoppingCart iShoppinoCart (string custonerilane, string date) 18 this custonerNare a customerNose: 11 currentoote - dote ; 12.1 14 string SheopingCart: iGetcustcenrNarec) const 4. return custonerlione; strine Shoppingtart i Getbetec) const\} 1) return currentoate) 191 20 vd ShoppingCart: Adadten(ttenfopurchase ite) ( cortitees push_backCitemis 221 2. yald Sheppinghart: illenavel cen(string iteaMlote ) bool itenfaund - fulse; for (aute: it m cartI tent begin(): it lucart feess, end( )(+it) i if (ik ofetMane - iterhame) corthtensierase(tt): iteriound = true briak: if(literfound)! coutec'ltes not found in carte Nothing removed."sendt? 34 coutcerltes nat foung in cart Rotting resived F ound: 36.1 37. veid shopingCart: MadifyItan ItenTopurshase Gteayd 38 beel. iterfeurd = fotsel. for(auto scarttes : cortitess)! if item. Getbescrietien() I " nones) cartiten Setoescribtion(ttem. Getaescriptien(3)) 1. if citen. Getjrice( i = dif cartiten, Setpriceciten, GetPrise()) 31 if (ctten Getourtity() 1=90 ( certiten Secquantioy i lee getountity(b): iteajound = truti brauk. ircitefiama) copetio" Iteen not founal in cert. Hothing podified."sienat, int Thopoingtartigethyit temtincerter tenct. int betctowantity ady for ( ponst. mute- Woertiten - cartitess). (i) 1 retion totatoiastity. th b? th 6x wuis thoopenviartiprint foceld Current fite malin.cpp - Load defaiz leminiate