With the libraries ready, we can start building the implementation of the inventory management system: First, we must write the…