\CPP
grade.cpp
#includeusing::istream; using::ostream; int main() { int numgra, j = 0; char peoption; float point[1001]; float pointposs, pearned, total = 0, total1, total2, total3; cout << "\n\n\tJosh's grade program\n\te-mail: marine@inreach.com\n\thttp://home.inreach.com/marine/\n\n"; cout << "\nIs points earned known?(y or n): "; cin >> peoption; while((peoption == 'Y') || (peoption == 'y')) { cout << "\nHow many points possible?: "; cin >> pointposs; cout << "\nHow many points earned?: "; cin >> pearned; total1 = ((pearned/pointposs) * 100); total2 = pearned/pointposs; cout << "\nThe GPA is: " << total2 < > pointposs; // gets points possible cout << "\nEnter number of assignments(2 - 1000): "; cin >> numgra; // gets number of assignments for(int i = 1; i <= numgra; i++) // loop for entering points { cout << "\nEnter points earned for paper number " << i << ": "; cin >> point[i]; } for(i = 1 ; i <= numgra; i++) // loop for adding points { total = total + point[i]; } cout << "\n\nThis studant has earned " << total <<" points out of " << pointposs <