Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ ASSIGNMENT In total, this is a furniture store's inventory program. Furniture store company has two product chair and table. It should do such as
C++ ASSIGNMENT In total, this is a furniture store's inventory program. Furniture store company has two product chair and table. It should do such as changing the number of products in the inventory, adding a new product (with information). All of our products have common features and they should be made with inheritance. For example, all of them have height and weight. After the program starts, it should read the input.txt file I gave below. You have to store the information (Id, height, weight ..., available products) for the different items in their objects and keep these objects in an ArrayList. ( ArrayList for Chair object, ArrayList for Table object) (object for C101 Id item all the features of this code will be in) - All inventory should be listed. When a new item information is received, it should be asked what item it is, and then the object should be created by saving it in the .txt file with all its information. - The number of items available must be changed. - All of them should be written to .txt file, saved. ex: CID HEGHT WEIGHT YON TASK AvailableProduct TID HEGHT WEIGHT YorN Mork Salary AvailableProduct input.txt file Chair C101 100 60 Y 1.8 47 091 110 70 N 1.8 11 C198 80 40 Y 0.8 32 Table T01 180 210 Y M4 9 TO2 180 250 N M 4 100 130 210 220 Y K 8 19 should look like this after procedures. Chair C101 100 60 Y 1.8 30 ( Change the Av.product) C91 110 70 N 1.8 11 C198 80 40 Y 0.8 32 C08 80 50 N 0.7 3 ( Add new item ) C++ ASSIGNMENT After the program starts, it should read the .txt file I gave below. You have to store the information (Id, weight, height ..., available products) for the different items in their objects and keep these objects in an ArrayList. All inventory should be listed. When a new item information is received, it should be asked what item it is, and then the object should be created by saving it in the .txt file with all its information. The number of items available must be changed. All of them should be written to .txt file, saved. (The common features of each item should be made by inheritance) input.txt file Chair C101 100 60 Y 1.8 47 091 110 70 N 1.8 11 C198 80 40 Y 0.8 32 Table T01 180 210 Y M 49 TO2 180 250 NM 4 100 T30 210 220 Y K 8 19 should look like this after procedures. Chair C101 100 60 Y 1.8 30 091 110 70 N 1.8 11 C198 80 40 Y 0.8 32 C08 80 50 N 0.7 3 Table T01 180 210 Y M 4 9 TO2 180 250 NM 4 100 T30 210 220 Y K 8 15
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