A cash register is a machine that usually has a money drawer and is designed to record sales transactions.…