The basic difference between simple and compound interest is that the simple interest is only calculated on the principal amount…