Need to HAVE a web page that uses a loop to allow a teacher toenter the following information for all students in a class:student's name, mt  grade, f  grade, hW grade,attendance grade.
program should calculate each student's numeric total gradebased on the following formula:course grade =(mT*0.3)+(f*0.4)+(homework*0.2)+(attendance*0.1)File Table.htmllooks like this:When the button is clicked, you need to prompt theuser the following information:-number of students (which willdetermine the number of rows in your table)-student's name-mTgrade-f grade-homework grade-attendance gradeOnce all theinformation above is provided, a JavaScript-generated table must becreated.
DEFAULT CODE
Student's Information Â
    Â
       Â
                      Student'sInformation          Â
        |     Â
 Â