1. A set of instruction given to acomputer to give the certain results. A sequence of instructions that areinterpreted and executed by acomputer. It can be made of…