Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Learn about reasons for the popularity of R and its interface

Answered: 1 week ago

Question

List the barriers in data collection for HR analytics.

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

3. Who would the members be?

Answered: 1 week ago