The Universal Product Code (UPC) is a symbol commonly found on the packaging of consumer goods and grocery items. It uses…