Question
Assume that the user input for product code is not sorted alphabetically. Initialise the following program data in main method (that is, these variables are
Assume that the user input for product code is not sorted alphabetically. Initialise the following program data in main method (that is, these variables are not global variables):
The stock level for each part is 100 at the start of the application. startLevel = 100
The reorder point for each part is 20. Once the stock level is 20 or below, the part should be reordered. reorderPoint = 20
A string records the letters A L. One letter is used to identify a part in the factory. partIds = 'ABCDEFGHIJKL'
An un-nested list records the stock level of each part. The stock level for each part starts with the value recorded in startLevel. For example, stock level for part A should be recorded at the 0-index, stock level for part B should be recorded at the 1-index, etc.
Have to use another un-nested list to store existing product codes and start the list empty.
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