Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ C ++ Grocery list program. The program should display a list of items. The u

ID: 653726 • Letter: C

Question

C++

C ++ Grocery list program.
     The program should display a list of items.
     The user must be able to enter the items.

    You will use a class for the Items.
                          The class should have data elements for the following information:
                                      item name,
                                      unit (i.e. can, or pounds, or ounces),
                                      number to buy, and unit price.

   You will also need a List class.
                   You will need to include some way to store Item objects in your List object.
                    As each item is entered an Item object must created with that information and added to the List object.

   You will need to perform the following activities:
                              create a list,
                              adding items,
                              remove items,
                             displaying the shopping list.

  To add an item you should prompt the user to enter the name, unit of sale, the number needed, and the unit price.

Customer loyalty card:
         
When entering items change the prompt to ask if the user has a card.
          If the user has a card then when entering an item prompt the user to indicate if the price is a Club (on sale) item.
          If it is then create a ClubItem object from the ClubItem class that is derived from Item.
          The cost entered should be discounted 10% (do not forget to round to pennies).
          If the item is not a club item then a regular Item object should be created.
          Whichever type of object is created it should be saved in the List class.

Explanation / Answer

#include #include #include #include #include #include #include "product.h" using namespace std; Product inv[100]; //array of 100 objects int c = 100; //maximum products is 100 int menu(void) //display user options { int option; cout