The program asks the user to input their marks, then uses if/else statements to check the marks and output the corresponding grade and CGPA. It provides a grading scale that assigns grades from A+ to F based on marks ranges, and associates each grade with a cumulative grade point average from 4.00 to 0.00.