when the weighted average cost method is used for the perpetual inventory system, a weighted average unit cost for each item is determined a.at the beginning of the time period. b.at the end of the time period. c.each time a purchase is made. d.each time a sale is made.