Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE ADD ALL SPECIFICATIONS AND LOOK AT THE PROBLEM I WILL POST THE PDF. Problem: C++ Your significant other has had a flash of inspiration
PLEASE ADD ALL SPECIFICATIONS AND LOOK AT THE PROBLEM I WILL POST THE PDF.
Problem. Your significant other has had a flash of inspiration - the world needs another inventory management program! You agreed to write it for them because love is indeed blind. Table 1 has the minimum fields you will need to output as well as the validation rules for Specification B4. Tahle : Data dictionary for Inventory ture. Requirements. - Do not optimize for computer performance. Thesearetherequirementsfortheas-signmentThismeanstheyaregeneral - Global variables in any form are forbidden. This includes \#define and apply to the entire assignment, statement's, too. You can, and should, put classes and structs right under your include statements and using namespace std; statement. - You cannot use any data structures from the standard template library. No or or anything like that. You can use C-Style arrays, however. You can also build your own dynamic memory structures. - Style guide elements apply: comments, layout, Program Greeting, Source File Header, and variables etc. etc. - Add Inventory - Add new elements to the end of your inventory array. You will need to resize your dynamic array for this to occur. - Delete Inventory - Remove the last element of your inventory Main Menu. array and shrink it. - dd lmentary - Edit lnventory - Enter a record index number and allow the * Doelite limuratiory - EPdit Inmesisary client to change the values. You do not need to edit the data - eQ>eir Propram values as those are fixed for this assignment. Higate a: Allowable menu opticen for - Display Inventory - Display all the records in your inventory array. - Quit Program - exit this program. 2. // Specification C2 - Dynamic Array Create an array on the heap. Initialize it to I element. You will add elements as necessary. 3. // Specification C3 - Resize Array Allows you to add records to the end of the inventory data structure you created. This is activated with the first menu option above. Create a pTmp pointer variable for the new data structure. You will also subtract elements from the end as well. 4// Specification C4 - Menu Input Validation Only allow the client to select the valid menu options, upper or lower case. Reprompt if other options are selected. Allowable values are the first letter of each option. Obviously, you will need to make sure you don't have two lines which start with the same letter. "B" Specification Bundle. // Specification B1 - Date class Create a Date class to handle all date related tasks. Grab the date from the system. You do not need to have a provision for a manually entered date. Your ComponentTest method should only check to see if the computer is generating the proper year. You do not need to test the other date elements. //Specification B2 RandNo Class Create a random number class, RandNo. You will use this to return the random number for the Wholesale cost (but you can make it flecible for other stuff too if you want). It should know seed initialization state and randomly set it once if needed. INVENTORY INQUISITOR (INVINQ) 3 Use the singleton design pattern to make sure your time set seed code only runs once. // Specification B4 - Inventory Entry Input Validation Apply the first three validation rules from Table 1 to Add new item and Edit item (Spec A1) menu selections. Re-prompt if incorrect input. Create an InVal class or function to perform this check. "A" Specification Bundle. // Specification A1 - Edit Inventory Add the capability to edit the contents of any inventory item. Edit is different from delete. You may apply input validation from Specification B4 if you wish. / / Specification A2 - Overload operator Overload the stream extraction operator somewhere in your program. I'm guessing the Inventory struct is the easiest place to do this. // Specification A3 - Overload operator Overload the stream insertion operator for the RandNo class. This will be how you will enter a user specified seed. This method will prompt the user and use the integer value they provide as the random number seed - overwriting the time value if needed. / / Specification A4 - UnitTest() function in main() The UnitTest function is where you call all the ComponentTest () methods from all the classes you use. You also put tests in here to verify your classes do indeed, work together. In this assignment, use this method to call your various ComponentTest () methods. You should have a ComponentTest () method in every class you create Problem: C++ Your significant other has had a flash of inspiration - the world needs another inventory management program! You agreed to write it for them because love is indeed blind. Table 1 has the minimum fields you will need to output as well as the validation rules for Specification B4.
Requirments:
- Do not optimize for computer performance.
- Global variables in any form are forbidden. This includes #define statement's, too. You can, and should, put classes and structs right under your include statements and using namespace std;
- statement.
- You cannot use any data structures from the standard template library. No
or or anything like that. You can use C-Style arrays, however. You can also build your own dynamic memory structures. - Style guide elements apply: comments, layout, Program Greeting, Source File Header, and variables etc. etc.
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