Question: in one system after a student attends kindergarten they attend...
In one system, after a student attends Kindergarten, they attend Grades 1 through 12. These grades
go to three different types of schools.
1. Grades 1,2,3,4,5 go to Elementary school.
2. Grades 6,7,8,9 go to Junior High School.
3. Grades 10,11, and 12 go to High School.
Write an algorithm, described in pseudocode, that reads in a list L and the number n of grades in L. Prints out the type of school for each
grade, and for every given grade that is not in the range 1 through 12 inclusive, prints out the message "invalid grades".