Leased or purchased machinery, equipment, replacement parts and accessories that have a useful life of more than six months, and that are used or consumed in the manufacturing, processing, fabricating or repairing of tangible personal property for ultimate sale, are exempt from state and local sales and use tax.