you please help me solve the foll main.cpp Mnclude #ndude #include "Shopping Carth #include tomToPurchase.h Andude using namespace std; void PrintMenu(Shopping Cart cart1) { char userinput string item Name: string item Description; double itemPrice int temQuantity: enquanny while(userinput = q) ( cout<<"MENU" << endl; cout<<"a-Add item to cart << end. cout<<"d-Remove item from cart << end coute Change item quantity" << end coute-Output items' descriptions" << end cout<"o-Output shopping cart << end; cout <<"q-Qur << end << end; userinput while (userinput-o' && userinput Y && userinput ! 'e' && userinputte d && userinput 'a' && userinput='q) { - cout<<"Choose an option" << endl cin>> userinput } switch (userinput) { case a cout<<"ADD ITEM TO CART" << end; cin ignore cout<<"Enter the item name" << endl godineicin, itemName) cout <<"Enter the item description" << endl getineicin, itemDescription) cout<<"Enter the item price" << end; cin >> itemPrice cout<<"Enter the item quantity" << end << endl; cin>> itemQuantity Item To Purchase item 1(temName, item Description, itemPrice, itemQuantity) cart1 Additem(tem1) break; } case 'd: ( cout<<"REMOVE ITEM FROM CART" << endl cout <<"Enter name of item to remove << end << end cin ignore() getti neicin, itemName): Item To Purchase item1; item1. SetName(temName) cart1 Removeltem(tem1) break; } case 'c:{ ItemToPurchase item1; cout <"CHANGE ITEM QUANTITY << end. cout<<"Enter the item name" << endl cin ignore gedineicin, itemName): cout<<"Enter the new quantity" << endl cin>>> itemQuantity. Rem1 SetName(itemName) item1 SetQuantity(itemQuantity) cart1 Modifyltem(item 1) break; } case":{ cout<<"OUTPUT ITEMS DESCRIPTIONS" << endl; cart1 PrintDescriptions() break; } case'o':{ cout <
you please help me solve the foll main.cpp Mnclude #ndude #include "Shopping Carth #include tomToPurchase.h Andude using namespace std; void PrintMenu(Shopping Cart cart1) { char userinput string item Name: string item Description; double itemPrice int temQuantity: enquanny while(userinput = q) ( cout<<"MENU" << endl; cout<<"a-Add item to cart << end. cout<<"d-Remove item from cart << end coute Change item quantity" << end coute-Output items' descriptions" << end cout<"o-Output shopping cart << end; cout <<"q-Qur << end << end; userinput while (userinput-o' && userinput Y && userinput ! 'e' && userinputte d && userinput 'a' && userinput='q) { - cout<<"Choose an option" << endl cin>> userinput } switch (userinput) { case a cout<<"ADD ITEM TO CART" << end; cin ignore cout<<"Enter the item name" << endl godineicin, itemName) cout <<"Enter the item description" << endl getineicin, itemDescription) cout<<"Enter the item price" << end; cin >> itemPrice cout<<"Enter the item quantity" << end << endl; cin>> itemQuantity Item To Purchase item 1(temName, item Description, itemPrice, itemQuantity) cart1 Additem(tem1) break; } case 'd: ( cout<<"REMOVE ITEM FROM CART" << endl cout <<"Enter name of item to remove << end << end cin ignore() getti neicin, itemName): Item To Purchase item1; item1. SetName(temName) cart1 Removeltem(tem1) break; } case 'c:{ ItemToPurchase item1; cout <"CHANGE ITEM QUANTITY << end. cout<<"Enter the item name" << endl cin ignore gedineicin, itemName): cout<<"Enter the new quantity" << endl cin>>> itemQuantity. Rem1 SetName(itemName) item1 SetQuantity(itemQuantity) cart1 Modifyltem(item 1) break; } case":{ cout<<"OUTPUT ITEMS DESCRIPTIONS" << endl; cart1 PrintDescriptions() break; } case'o':{ cout <
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Help me with this quickly. don't send answer with plagiarism.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education