Inputs the number of courses offered and the script automatically creates a number of boxes according to the input value.
Then enter the course codes, units and scores then clicks on calculate. If there are no errors in inputs, the script out puts CGPA in a dialog box.