Cost accounting is a type of cost managerial accounting that aims to capture a company's whole cost of production…