CMIS 141 GPA assignment. Write a program (either an applet or an application) that calculates GPA for a student. A student can take any number of classes. A class is from 1 to 6 credits. A, B, C, D, and F are the possible grades. For each class, its number of credits is multiplied by the grade's point value to determine the class's points. An A is worth 4 points per credit. An B is worth 3 points per credit. An C is worth 2 points per credit. An D is worth 1 points per credit. An F is worth 0 points per credit. GPA is the sum of the points divided by the total number of credits. Example calculation: a student took 5 classes with these grades and credits: (points is not input by the user) grade credits points A 3 12 B 3 9 B 4 12 C 3 6 F 4 0 ---- ---- 17 39 GPA = 39/17 = 2.29 JOptionPanes must be used for all input and output. The program must ensure valid input values (i.e. credit values must be between 1 and 6, grades must be ABCDF). You do not have to ensure that the user inputs valid integers. This program only needs ints, doubles, and Strings. If statements and loops are needed. It's a review assignment. Post your .java file in the GPA assignment in WebTycho.