Use Selection and Repetition Concepts for this problem.
A parts inventory record contains the following fields:
- Record code (only code 15 is valid)
- Part number
- Part description
- Inventory balance
Design an algorithm that will read the file of parts inventory records, validate the record code and part number on each record, and print the details of all valid inventory records that have an inventory balance equal to zero.