Question
C++ Programming Project Instructions Complete the following programming project according to the given specifications. You may need to review concepts from several units of the
C++
Programming Project Instructions Complete the following programming project according to the given specifications. You may need to review concepts from several units of the course to implement all functionality of this project. Grocery Store Application You are to create a grocery store application that uses Object Oriented Programming techniques. All classes should contain (at a minimum) private data members, public accessor and mutator methods for all the private data members (use enumerated types where appropriate), public constructors (default, parameter, and copy). Only class accessor methods for the private data members may be declared inline. Implement friend functions and overloaded operators as needed. In addition to general C++ programming constructs, you will be graded on the application of Object Oriented Programming constructs to add any class methods that are appropriate and reasonable for your problem implementation. Create a GrItem class that contains only the following private data members: Data Member Data Type Description name C++ string name of product quantity integer number of items purchased regular price floating point suggested retail price sale price floating point product sale price on sale Boolean flag indicating whether product is on sale or not tax category enumerated type category used to determine the items tax rate (alcohol, food, general merchandise, or medicine) Tax rates for the enumerated tax category type are (these should be static GrItem constants):
Tax Category
alcohol 8%
food 5%
general merchandise 7%
medicine 4%
The program should perform the following listed activities for full possible credit: create an array of objects to contain all the grocery items read from a file (maximum 20). Alternatively, you may use the STL vector container instead of a fixed size array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started