SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
Request help in c++. Please no vector or algorithm library. Here are the classes:
class PriceHistory{
public:
// members
float historicalPrice;
string date; // user enters in the form YYYY-MM-DD
// mutators
void setHprice(float);
void setDate(string);
// accessors
float getHP() const;
string getDate() const;
};
class Grocery{
public:
// Array size for price history objects
string description;
int upc;
float cost;
float price;
int inventory;
char status;
// counter for grocery items
static int numGroceryItems;
PriceHistory priceHistory[PH_SIZE];
// counter for history items
int numHistItems;
// accessors
string getDescription() const;
float getUpc() const;
float getCost() const;
float getPrice() const;
int getInventory() const;
char getStatus() const;
int getHistItems() const;
// mutators
void setStatus(char);
void updateGroceryItems();
};
Here is what i need help:
Phase 2 Transaction processing phase. Main asks the console user for transactions. Use getline;
do
not use some other form of input.
H upc date price
Add a price history to the grocery item with UPC code upc. The upc, date, and price fields are
fixed in size and
separated by blanks. Perform a linear search for the item. If its found, add the history and
display a success
message. If the UPC isnt found, display a not found message. You may assume that you will
never add
more than 25 history items per grocery item.
C upc1 upc2
Compares the number of price history elements for the two items specified by upc1 and upc2. If
the number
of elements is equal, display a message saying they are equal. Otherwise, display a message
saying they are
not equal. Use an operator== overload to implement the comparison. If either upc is not found,
display an
error message.
X
Clean up and exit.

Contenu connexe

Plus de alphaagenciesindia

Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdf
Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdfRequirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdf
Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdfalphaagenciesindia
 
Research and describe TWO diseases - The cardiovascular disease .pdf
Research and describe TWO diseases - The cardiovascular disease .pdfResearch and describe TWO diseases - The cardiovascular disease .pdf
Research and describe TWO diseases - The cardiovascular disease .pdfalphaagenciesindia
 
Required The City of Mississauga Goes Digital The City of Mississ.pdf
Required The City of Mississauga Goes Digital The City of Mississ.pdfRequired The City of Mississauga Goes Digital The City of Mississ.pdf
Required The City of Mississauga Goes Digital The City of Mississ.pdfalphaagenciesindia
 
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdf
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdfRequired1-a. Determine Mahomess pension expense for 2024.1-b, .pdf
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdfalphaagenciesindia
 
Relaciona cada �poca con sus caracter�sticas definitorias. Per�od.pdf
Relaciona cada �poca con sus caracter�sticas definitorias.  Per�od.pdfRelaciona cada �poca con sus caracter�sticas definitorias.  Per�od.pdf
Relaciona cada �poca con sus caracter�sticas definitorias. Per�od.pdfalphaagenciesindia
 
Regarding the management of R&D teams after Vandeputte�s diversifica.pdf
Regarding the management of R&D teams after Vandeputte�s diversifica.pdfRegarding the management of R&D teams after Vandeputte�s diversifica.pdf
Regarding the management of R&D teams after Vandeputte�s diversifica.pdfalphaagenciesindia
 
Reflect on your current workplace where you currently interact with .pdf
Reflect on your current workplace where you currently interact with .pdfReflect on your current workplace where you currently interact with .pdf
Reflect on your current workplace where you currently interact with .pdfalphaagenciesindia
 
Reflexiona sobre un cambio profesional importante que hayas experime.pdf
Reflexiona sobre un cambio profesional importante que hayas experime.pdfReflexiona sobre un cambio profesional importante que hayas experime.pdf
Reflexiona sobre un cambio profesional importante que hayas experime.pdfalphaagenciesindia
 
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdf
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdfReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdf
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdfalphaagenciesindia
 
Required 1. prepare the Income Statement for the year ended Decembe.pdf
Required 1. prepare the Income Statement for the year ended Decembe.pdfRequired 1. prepare the Income Statement for the year ended Decembe.pdf
Required 1. prepare the Income Statement for the year ended Decembe.pdfalphaagenciesindia
 
Required Designate where each of the following events would be pre.pdf
Required  Designate where each of the following events would be pre.pdfRequired  Designate where each of the following events would be pre.pdf
Required Designate where each of the following events would be pre.pdfalphaagenciesindia
 
Routes of Administration The nurse is teaching clients with inflamma.pdf
Routes of Administration The nurse is teaching clients with inflamma.pdfRoutes of Administration The nurse is teaching clients with inflamma.pdf
Routes of Administration The nurse is teaching clients with inflamma.pdfalphaagenciesindia
 
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdf
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdfRenzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdf
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdfalphaagenciesindia
 
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdf
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdfRomance en la oficina buscando respuestas a tientasDescripci�n de.pdf
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdfalphaagenciesindia
 
ROBOTICS Currently, roboticists and AI researchers are still strug.pdf
ROBOTICS Currently, roboticists and AI researchers are still strug.pdfROBOTICS Currently, roboticists and AI researchers are still strug.pdf
ROBOTICS Currently, roboticists and AI researchers are still strug.pdfalphaagenciesindia
 
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdf
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdfRoberts Rules of Order refer toA.procedural guidelines on the corre.pdf
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdfalphaagenciesindia
 
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdf
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdfRKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdf
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdfalphaagenciesindia
 
Robert and Charles are trying to decide what form of business to for.pdf
Robert and Charles are trying to decide what form of business to for.pdfRobert and Charles are trying to decide what form of business to for.pdf
Robert and Charles are trying to decide what form of business to for.pdfalphaagenciesindia
 
Ring-tailed lemurs are completely restricted to the island of Madaga.pdf
Ring-tailed lemurs are completely restricted to the island of Madaga.pdfRing-tailed lemurs are completely restricted to the island of Madaga.pdf
Ring-tailed lemurs are completely restricted to the island of Madaga.pdfalphaagenciesindia
 
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdf
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdfRhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdf
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdfalphaagenciesindia
 

Plus de alphaagenciesindia (20)

Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdf
Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdfRequirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdf
Requirements Use JavaDo Not Use RecursionDo Not Use Array Lis.pdf
 
Research and describe TWO diseases - The cardiovascular disease .pdf
Research and describe TWO diseases - The cardiovascular disease .pdfResearch and describe TWO diseases - The cardiovascular disease .pdf
Research and describe TWO diseases - The cardiovascular disease .pdf
 
Required The City of Mississauga Goes Digital The City of Mississ.pdf
Required The City of Mississauga Goes Digital The City of Mississ.pdfRequired The City of Mississauga Goes Digital The City of Mississ.pdf
Required The City of Mississauga Goes Digital The City of Mississ.pdf
 
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdf
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdfRequired1-a. Determine Mahomess pension expense for 2024.1-b, .pdf
Required1-a. Determine Mahomess pension expense for 2024.1-b, .pdf
 
Relaciona cada �poca con sus caracter�sticas definitorias. Per�od.pdf
Relaciona cada �poca con sus caracter�sticas definitorias.  Per�od.pdfRelaciona cada �poca con sus caracter�sticas definitorias.  Per�od.pdf
Relaciona cada �poca con sus caracter�sticas definitorias. Per�od.pdf
 
Regarding the management of R&D teams after Vandeputte�s diversifica.pdf
Regarding the management of R&D teams after Vandeputte�s diversifica.pdfRegarding the management of R&D teams after Vandeputte�s diversifica.pdf
Regarding the management of R&D teams after Vandeputte�s diversifica.pdf
 
Reflect on your current workplace where you currently interact with .pdf
Reflect on your current workplace where you currently interact with .pdfReflect on your current workplace where you currently interact with .pdf
Reflect on your current workplace where you currently interact with .pdf
 
Reflexiona sobre un cambio profesional importante que hayas experime.pdf
Reflexiona sobre un cambio profesional importante que hayas experime.pdfReflexiona sobre un cambio profesional importante que hayas experime.pdf
Reflexiona sobre un cambio profesional importante que hayas experime.pdf
 
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdf
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdfReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdf
ReinforcementR-4.3 Viruses that perform no explicit malicious beha.pdf
 
Required 1. prepare the Income Statement for the year ended Decembe.pdf
Required 1. prepare the Income Statement for the year ended Decembe.pdfRequired 1. prepare the Income Statement for the year ended Decembe.pdf
Required 1. prepare the Income Statement for the year ended Decembe.pdf
 
Required Designate where each of the following events would be pre.pdf
Required  Designate where each of the following events would be pre.pdfRequired  Designate where each of the following events would be pre.pdf
Required Designate where each of the following events would be pre.pdf
 
Routes of Administration The nurse is teaching clients with inflamma.pdf
Routes of Administration The nurse is teaching clients with inflamma.pdfRoutes of Administration The nurse is teaching clients with inflamma.pdf
Routes of Administration The nurse is teaching clients with inflamma.pdf
 
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdf
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdfRenzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdf
Renzo es un l�der entusiasta que cree en sus ideas. Renzo se detiene.pdf
 
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdf
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdfRomance en la oficina buscando respuestas a tientasDescripci�n de.pdf
Romance en la oficina buscando respuestas a tientasDescripci�n de.pdf
 
ROBOTICS Currently, roboticists and AI researchers are still strug.pdf
ROBOTICS Currently, roboticists and AI researchers are still strug.pdfROBOTICS Currently, roboticists and AI researchers are still strug.pdf
ROBOTICS Currently, roboticists and AI researchers are still strug.pdf
 
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdf
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdfRoberts Rules of Order refer toA.procedural guidelines on the corre.pdf
Roberts Rules of Order refer toA.procedural guidelines on the corre.pdf
 
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdf
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdfRKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdf
RKO-Stanley v. GrazianoEagen, J.On April 30, 1970, RKO-Stanley W.pdf
 
Robert and Charles are trying to decide what form of business to for.pdf
Robert and Charles are trying to decide what form of business to for.pdfRobert and Charles are trying to decide what form of business to for.pdf
Robert and Charles are trying to decide what form of business to for.pdf
 
Ring-tailed lemurs are completely restricted to the island of Madaga.pdf
Ring-tailed lemurs are completely restricted to the island of Madaga.pdfRing-tailed lemurs are completely restricted to the island of Madaga.pdf
Ring-tailed lemurs are completely restricted to the island of Madaga.pdf
 
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdf
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdfRhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdf
Rhoda Rabs emigrated from the Caribbean to Toronto in her twenties t.pdf
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 

Dernier (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Request help in c++. Please no vector or algorithm library. Here are.pdf

  • 1. Request help in c++. Please no vector or algorithm library. Here are the classes: class PriceHistory{ public: // members float historicalPrice; string date; // user enters in the form YYYY-MM-DD // mutators void setHprice(float); void setDate(string); // accessors float getHP() const; string getDate() const; }; class Grocery{ public: // Array size for price history objects string description; int upc; float cost; float price; int inventory; char status; // counter for grocery items static int numGroceryItems; PriceHistory priceHistory[PH_SIZE]; // counter for history items int numHistItems; // accessors string getDescription() const; float getUpc() const; float getCost() const; float getPrice() const; int getInventory() const; char getStatus() const; int getHistItems() const;
  • 2. // mutators void setStatus(char); void updateGroceryItems(); }; Here is what i need help: Phase 2 Transaction processing phase. Main asks the console user for transactions. Use getline; do not use some other form of input. H upc date price Add a price history to the grocery item with UPC code upc. The upc, date, and price fields are fixed in size and separated by blanks. Perform a linear search for the item. If its found, add the history and display a success message. If the UPC isnt found, display a not found message. You may assume that you will never add more than 25 history items per grocery item. C upc1 upc2 Compares the number of price history elements for the two items specified by upc1 and upc2. If the number of elements is equal, display a message saying they are equal. Otherwise, display a message saying they are not equal. Use an operator== overload to implement the comparison. If either upc is not found, display an error message. X Clean up and exit.