solve in c++ Create an application for a supermarket owner. The owner would like to store up to 50 items. Each item is represented by an ID and a price. The program should ask the user if he/she wants to do one of the following tasks: 1. Enter an item ID and price 2. Retrieve the price of a specific item 3. Display all items within a specific range of prices 4. Delete an item 5. Display all items 6. Delete all items Note:  The items should be stored in memory sorted based on price.  The six tasks should be implemented as functions. The program should run continuously until the user presses 'e' to exit

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

solve in c++

Create an application for a supermarket owner. The owner would like to store
up to 50 items. Each item is represented by an ID and a price.
The program should ask the user if he/she wants to do one of the following
tasks:
1. Enter an item ID and price
2. Retrieve the price of a specific item
3. Display all items within a specific range of prices
4. Delete an item
5. Display all items
6. Delete all items
Note:

 The items should be stored in memory sorted based on price.
 The six tasks should be implemented as functions.
The program should run continuously until the user presses 'e' to exit

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
User Defined DataType
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr