To be submitted no later than March 24, 2020 at 11:55 p.m. 1.Objective The main goal of this work is to become familiar with the standard library of the C ++ language. In this work, so you are asked...

Instructions in file


To be submitted no later than March 24, 2020 at 11:55 p.m. 1.Objective The main goal of this work is to become familiar with the standard library of the C ++ language. In this work, so you are asked to design a program that uses the structures of data proposed by the C ++ STL. The only library allowed for this work is the STL of C ++ 2. Context A cookie manufacturing plant, BiscuitCo, wishes to optimize its production management of cookies. Before implementing the necessary changes, the company first wishes to see the result of these changes by computer simulation. The production of batches of cookies has the following particularities: Several orders are received each day; Each order contains one or more batches of cookies (type + quantity); A cookie-making recipe is made up of a list of manufacturing steps. Each step must be completed before starting a new one; There are four types of steps: Preparation, Mixing, Cooking, Packaging. The factory contains different production units, each dedicated to a stage. Each production unit takes 15 minutes to complete a recipe step on a batch of cookies; All production units must operate at the same time; Order processing works as follows: Each order is divided into batches of cookies; Each production unit processes a specific step on a batch in 15 minutes. When the processing is finished, the batch of cookies is sent to the next production unit; When a batch has passed through all stages of the recipe, it is attached to its order initial; When the order is completed, it is sent to the customer; BiscuitCo is interested in different temporal data on the simulation: 1. What is the average time to complete an order? 2. How long did the longest order take? 3. What was the fastest order? 4. Which production unit is used the most or least? 3. Work to be done In a class dedicated to the requested task, you must encapsulate the different features that will answer the above questions. To do so, you must use different classes as well as the STL data structures. You are free to design your assignment as you wish, but here are some food for thought: You should have several classes, each representing the concepts of homework (for example: Order, BiscuitsLot, ProductionUnit, etc.) For each production unit to work at the same time, a loop should execute until all commands are completed. It's in the body of this loop that each production unit will have to perform its work. Each iteration of the loop will represent 15 minutes. Each production unit should be used to its maximum. So you should process several batches of cookies simultaneously and it is quite possible that several batches are awaiting processing by a production unit. What structure of data seen in class would allow the management of pending batches? Make sure you can follow the evolution of orders by a clear display and concise during the different stages of batch processing. Answer the questions at the end of your program. In order to allow you to evolve iteratively, the assignment is separated into three parts. You must provide only one assignment with the most advanced version possible. 4. Batch processing (10 points) In a first version, the simulation must have four production units (one per stage) and each type of cookie has the same recipe (1. Preparation, 2. Mixing, 3. Baking, 4. Packaging). BiscuitCo keeps its orders in a file "ORDERS.txt" where each order contains a unique number and a list of type of cookies followed by a quantity. The information contained in the text file "COMMANDES.txt" has the following format: Command 1 Cookie1 20 Biscuit2 34 & Command 2 Cookie1 10 Biscuit2 10 Biscuit3 10 ... & Order Cookie1 10 Or : "Order" is a unique integer representing the number control. Each following line indicates a batch of cookies, composed a type of cookie and a quantity requested; The character "&" is used to separate the commands. 5. Different recipes (5 points) Each type of cookie has a different recipe. In this case, each of the four stages of production can be repeated and a recipe does not necessarily contain all the steps. Each recipe is entered in a file "RECIPES.txt" where each type of cookie is associated to a production step list. The information contained in the text file "RECIPES.txt" has the following format: Cookie 1 Step 1 2nd step Stage 3 & Cookie 2 2nd step Stage 3 Step 4 & ... Or : "Biscuit" is a character string with no space identifying the type of cookies. "Stage" is a character string with no identifying space the production stage; The character "&" is used to separate the recipes. 6. Variable production units (optional, 5 bonus points) The objective is to optimize production, the number of production units and the time of processing taken by each is variable and defined in a file "PRODUCTION.txt" where each production unit is linked to a stage and has a processing time. The information contained in the "PRODUCTION.txt" text file has the following format: STEP_1 TIME_X STEP_2 TIME_Y ... STEP_X TIME_Z Or : Each line indicates a production unit identified by a step and a time (in increments of 15 minutes); 7. Requirements and Deliverables To simplify the correction of the assignment, you must respect these few instructions: Your assignment must necessarily work (compilation and execution) with the Visual Studio 2015 or higher programming environment. You must submit all your header files and your source files (.h and .cpp); You can submit the project structure containing the .sln and .vxproj files. However, you will need to make sure you have cleaned your solution with the discount (no executable and no compiled file)
Mar 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here