Create a flowchart and pseudo-code for the following problem:
You have a file containing the grades of students from Beginning Programming, along with the students' information. Your part of the program has to loop through the records, and make sure that any student who has received a 'D', 'W', 'I', or 'F' in the course will not be able to move on to the Advanced Programming class.