@@ -0,0 +1,2585 @@
+/** A program that calculates the total grade for three classroom exercises as %0A *  a percentage and summarizes the scores in a table. %0A */%0A%0Apackage projectgrades;%0A%0A/**%0A *%0A * @author k8port%0A */%0Aimport java.util.Scanner;%0Aimport java.text.DecimalFormat;%0A%0Apublic class ProjectGrades %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    %0A    %0A    public static void main(String%5B%5D args) %7B%0A        %0A        // instance variables%0A        String ex1, ex2, ex3;%0A        int score1, score2, score3, totScrPoss1, totScrPoss2, totScrPoss3;%0A        int totalScore, totalPoss;%0A        String str1 = %22Exercise%22, str2 = %22Score%22, str3 = %22Total Possible%22;%0A        Scanner scan = new Scanner(System.in);%0A        DecimalFormat prcntForm = new DecimalFormat(%2200.00%25%22);%0A        %0A        // gather input%0A        System.out.println(%22Enter 1st classroom exercise.%22);%0A        ex1 = scan.nextLine();%0A        System.out.println(%22Enter 2nd classroom exercise.%22);%0A        ex2 = scan.nextLine();%0A        System.out.println(%22Enter 3rd classroom exercise.%22);%0A        ex3 = scan.nextLine();%0A        %0A        System.out.println(%22Enter score received for exercise 1.%22);%0A        score1 = scan.nextInt();%0A        System.out.println(%22Enter score received for exercise 2.%22);%0A        score2 = scan.nextInt();%0A        System.out.println(%22Enter score received for exercise 3.%22);%0A        score3 = scan.nextInt();%0A        totalScore = score1 + score2 + score3;%0A        %0A        System.out.println(%22Enter total points possible for exercise 1.%22);%0A        totScrPoss1 = scan.nextInt();%0A        System.out.println(%22Enter total points possible for exercise 2.%22);%0A        totScrPoss2 = scan.nextInt();%0A        System.out.println(%22Enter total points possible for exercise 3.%22);%0A        totScrPoss3 = scan.nextInt();%0A        totalPoss = totScrPoss1 + totScrPoss2 + totScrPoss3;%0A        %0A        System.out.printf(%22%25-30s %25-10s %25-10s%25n%22, str1, str2, str3);%0A        System.out.printf(%22%25-30s %25-10d %25-10d%25n%22, ex1, score1, totScrPoss1);%0A        System.out.printf(%22%25-30s %25-10d %25-10d%25n%22, ex2, score2, totScrPoss2);%0A        System.out.printf(%22%25-30s %25-10d %25-10d%25n%22, ex3, score3, totScrPoss3);%0A        %0A        double percent = (double) totalScore / (double) totalPoss;%0A        String str4 = str3.substring(0, %22Total%22.length());%0A        String str5 = prcntForm.format(percent);%0A        System.out.printf(%22%25-30s %25-10d %25-10d%25n%22, str4, totalScore, totalPoss);%0A        System.out.printf(%22Your %25s is %25d out of %25d, or %25s%25n%22, str4, totalScore, %0A                                                                totalPoss, str5);%0A    %7D%0A    %0A%7D%0A

Create ProjectGrades.java