We learnt in the last class by what a pc program and programming means. We thus realize that we want…