WAP to calculate simple interest using default argument for rate = 20% SIMPLE INTEREST = PRINCIPLE*TIME*RATE;
Define a class Student with following details .private members :- regno, name, marks and average marks of a class.public - input() - to accept all the valuesdisplay() - to display all data members on the screenfindavg() - to calculate average of classshowavg() - static function to display the average marks of classInput details of 3 student , find their average marks and display it.