Create the application which reads the file of inventory information comprising product ID and quantity. Example inventory file:
10401 32
10522 25
10401 1
10402 15
File can contain numerous entries for same Product ID. Your application must accumulate quantities for each Product ID as you read inventory information from file. The application must print total inventory for each Product ID.