1. computerA computer is a general purposedevice that can be programmed tocarry out a set of arithmetic or logicaloperations automatically. Since asequence of operations…