Please Help! Write a C++ program that calculates and prints the total grade for n assignments as a percentage. Prompt the user to enter the value of n, followed by the number of points received and number of points possible for each assignment . Calculate and print the total number of points received, total number of points possible, and the overall percentage: (total points received / total points possible) * 100. Solution #include <iostream> using namespace std; int main () { int n=0,n_initial; // n will be the number of assignments entered in the system. // since n will be counting down, I want to save n_initial as well. int grades [2][n]; // 2 rows for possible and actual, n columns because you will have a column for each item. // # OF EXERCISES cout << \"How many exercises to input? > \"; cin >> n; n_initial = n; cout << \"n_initial = \" << n_initial; //SCORE RECIEVED COUNTDOWN while (n>0) { int x,y; cout << endl << endl << \"Score recieved for exercise \" << n << \": \"; cin >> x; grades [1][n] = x; cout << endl << \"Points possible for exercise \" << n << \": \"; cin >> y; grades [2][n] = y; n = n-1; } //CALCULATION OF TOTAL AND PERCENT int score_total=0,pointspossible_total=0,rows_1,rows_2; //SCORE TOTAL int xy=0; n = n_initial; for (int xy=0; xy < n_initial; xy++) { score_total += grades [1][n]; n--; } cout << endl << \"Score Total = \"<< score_total << endl; //POINTS POSSIBLE TOTAL xy=0; n = n_initial; for (int xy=0; xy < n_initial; xy++) { pointspossible_total += grades [2][n]; n--; } cout << \"Possible points Total = \" << pointspossible_total << endl; cout << \"Your total is \" << score_total << \" out of \" << pointspossible_total << \", and your percentage is \" << score_total/pointspossible_total << \".\" <<endl; system (\"pause\"); return (0) } .