Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Purpose Congratulations! You have just landed your first consulting job! Your task is to create a program that manages a simple inventory for a retail
Purpose Congratulations! You have just landed your first consulting job! Your task is to create a program that manages a simple inventory for a retail store. Program Input The input to the program will be the product id number (a 5-digit identification number), the manufacturer's id number (a 4-digit identification number), the wholesale price of the product, the mark-up percentage for the product, the description of the product, and the quantity of product in stock. The following is an example of this input: Wholesale Price Product ID Number Manufacturer's ID Number 5020 Mark-Up Percentage .20 10001 15.00 Product Description Quantity In Stock 3.5 Floppy Disks 140 Output Prepare a listing of the inventory for the store with appropriate column headings. This listing should include the following: a. the product id number; b. the product description; c. the manufacturer's id number; d. the wholesale price of the product; e. the mark-up percentage for the product; f. the quantity of product in inventory. The retail price for the product (the wholesale price increased by the mark-up percentage) should be printed as a separate item from the above listing. Processing 1. The class variables, which represent a single product sold by the store, should include the following data members: a. the product id number integer; b. the description of the product character array; c. the manufacturer's id number integer; 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; 2. The class should have the following member functions a. Two constructors. The first is the default, which sets all of the members of the class to zero. The second constructor should enable the user to specify all of the initial attributes of the members of the class. b. Separate functions which return the values of the members of the class. c. A function that displays the values of the members of the class to the monitor (as described in the "output" section). d. A function that returns the class object's retail price (the wholesale price increased by the mark-up percentage). Program Submission Requirements 1. A title page listing your name, the program number, and the due date. 2. A table of contents indexing the sections that follow. A structure chart depicting the relationship between various functions in the program. A program narrative depicting the general logic of the program. This narrative should be comprised of two distinct sections. The first section should provide the reader with a brief description of the purpose of the program. The second section should detail the procedures, methods and techniques that were utilized to accomplish the assigned task Source code for the program, which includes the header file, the implementation file, and the source code for the form. Two screen captures of the "Input/Output Data" form: one illustrating input data only; the other illustrating input data and corresponding output. 3. All files packaged into a zipped project folder, which includes the program. To Print A Window 1. With the window visible, select ALT + PRINT SCREEN. 2. Open an application such as WordPerfect, Word, or PowerPoint. 3. Paste (CTRL + V) the current contents of the clipboard (the window) into the blank document. 4. Print the document. EN CIWINDOWS\system32\cmd.exe Enter The Product's Identification Number: Enter The Product's Manufacturer's Identification Number: Enter The Product's Wholesale Price: Enter The Product's Mark-Up Percentage: Enter The Product's Description: 3.5" Floppy Disks Enter The Quantity Of The Product In Stock: 140" S020 45.00
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