Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me write this C++ Program Output Prepare a listing of the inventory for the retail store with appropriate column headings. This listing should

image text in transcribed

please help me write this C++ Program

Output Prepare a listing of the inventory for the retail store with appropriate column headings. This listing should include the following: 2. a. the product id number; b. the product description c. the manufacturer's id number d. the retail price of the product (the wholesale price increased by the mark-up percentage); e. the quantity of product in inventory Processing 1. The private class component should include the following data members: a. the product id number b. the description of the product c. the manufacturer's id number d. the wholesale price of the product double; e. the mark-up percentage for the product double; f the quantity of product in inventory integer g. pointer to next record integer character array: integer pointer. The class should have a constructor function, which sets all of the members of the class to zero and initializes the pointer to the next record to NULL 2. One global variable may be used. This variable should represent a pointer to the head of the linked list. For example, if the class was declared as "Product," this declaration would appear in your class implementation file as: 3. Product * FirstRecordPointer; 4. The class should have member functions to perform the following: a. create the linked list, sorted in ascending order by product id number; b. count the number of members in the list; display the values of all of the members of the list to an external file (as described in the "output" section); return an object's retail price (the wholesale price increased by the mark-up percentage); Separate functions which return the values of existing members of the list (product id number, the manufacturer's id number, the wholesale price of the product, the mark- up percentage for the product, and the pointer to the next record) Separate functions which set the values of existing members of the list (product id number, the manufacturer's id number, the wholesale price of the product, the mark- up percentage for the product, and the pointer to the next record). c. d. f

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

Students also viewed these Databases questions