/* program prob2 * create a table to evaluate a formula result = f(gpa) */ #include using namespace std; int main() { double gpa,result; cout << "Table of Function Values" << endl << endl; cout << "Grade Point Average Value of Formula Status" << endl; for (gpa = 0.00; gpa <= 4.00; gpa = gpa + 0.50) { result=(gpa*gpa*gpa+7*gpa-1)/(gpa*gpa - (gpa+5)/3); cout << " " << gpa << " " << result; if (result >= 0) cout << " Admit"; cout << endl; } cout << endl << "The table is finished" << endl; system("pause"); return 0; }