Problem:
Question 1- Based on the Queue ADT specification, an application programmer has two ways to check for an empty queue. What are they (describe) and which is better.
Question 2- Using functions, design and write a program to calculate students' grades for n students (where n is entered by the user at the beginning of the program). For each student, the program reads a student's name and his grades in the midterm and final exams. The program then calculates his course grade (both exams carry equal weight), and converts it to a letter grade (‘F'=0..49,‘C'=50..64,‘B'=65..79,‘A'= 80..100).
Please describe the code with the help of comments.