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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!