Shemrock Inc. is a brake pad manufacturing company. This company uses raw materials, such as carbon powder, iron, ash, and resin. It wants to develop an inventory management system that will have the following features:

1.The system should store the current inventory levels for different raw materials in a file.

2.If carbon powder is less than 500 lbs, then the system will check if orders are still pending on the shop floor. If pending orders are for more than 5,000 brake pads, then someone should order 2,000 lbs of carbon powder; otherwise, someone should order for 1,000 lbs of carbon powder.

3.Similarly, perform the same check for other raw materials iron, ash, and resin.

4.The list of all the raw-material vendors is available with Shemrock Inc. The system should read and store the vendor information and then, depending upon the raw material that is to be ordered, print out the purchase order for that raw material. The purchase order will contain the details of the raw material such as the name, quantity, total cost, and vendor address.
Create a flowchart and pseudocode using control breaks that enable the user to print invoices for any raw material that is selected.

Here is a sample flowchart and pseudocode that can be used to develop the inventory management system for Shemrock Inc.

Flowchart:

```
Start

Read raw material inventory levels from file

IF carbon powder < 500 THEN
IF pending orders > 5000 THEN
Order 2000 lbs of carbon powder
ELSE
Order 1000 lbs of carbon powder
END IF
END IF

IF iron < 1000 THEN
IF pending orders > 10000 THEN
Order 2000 lbs of iron
ELSE
Order 1000 lbs of iron
END IF
END IF

IF ash < 500 THEN
IF pending orders > 2000 THEN
Order 1000 lbs of ash
ELSE
Order 500 lbs of ash
END IF
END IF

IF resin < 1000 THEN
IF pending orders > 5000 THEN
Order 2000 lbs of resin
ELSE
Order 1000 lbs of resin
END IF
END IF

Read vendor information from file

IF raw material selected = carbon powder THEN
Print purchase order for carbon powder
ELSE IF raw material selected = iron THEN
Print purchase order for iron
ELSE IF raw material selected = ash THEN
Print purchase order for ash
ELSE IF raw material selected = resin THEN
Print purchase order for resin
END IF

End
```

Pseudocode:

```
1. Read raw material inventory levels from file

2. IF carbon powder < 500 THEN
IF pending orders > 5000 THEN
Order 2000 lbs of carbon powder
ELSE
Order 1000 lbs of carbon powder
END IF
END IF

3. IF iron < 1000 THEN
IF pending orders > 10000 THEN
Order 2000 lbs of iron
ELSE
Order 1000 lbs of iron
END IF
END IF

4. IF ash < 500 THEN
IF pending orders > 2000 THEN
Order 1000 lbs of ash
ELSE
Order 500 lbs of ash
END IF
END IF

5. IF resin < 1000 THEN
IF pending orders > 5000 THEN
Order 2000 lbs of resin
ELSE
Order 1000 lbs of resin
END IF
END IF

6. Read vendor information from file

7. IF raw material selected = carbon powder THEN
Print purchase order for carbon powder
ELSE IF raw material selected = iron THEN
Print purchase order for iron
ELSE IF raw material selected = ash THEN
Print purchase order for ash
ELSE IF raw material selected = resin THEN
Print purchase order for resin
END IF
```

Note: The above flowchart and pseudocode provide a general structure to implement the inventory management system as per the provided requirements. You may need to further adapt and refine the code based on your programming language and specific implementation details.