The pseudocode is given below: mark = 0 studentpass 0 distinction = 0 numstudents = 0 totalmark = 0 while mark != -1 mark = input ("please enter mark, -1 to end: ") if mark >= 50 then studentpass = studentpass + 1 else if mark >= 80 then distinction = distinction + 1 endif endif numstudents totalmark = totalmark + 1 = numstudents + 1 endwhile averagemark = totalmark/numstudents print ("Number of students: ", numstudents) print ("Number of students with pass or distinction: ", studentpass) print ("Number of students with distinction: ", distinction) print ("Average mark: ", averageMark) Locate the three errors, and suggest how the coding should be corrected.