Discuss the principles and procedures for accounting for inventories using the perpetual and periodic inventory systems.