Update the code #include #include #include #include using namespace std; int main() { char cont =…

Update the code #include #include #include #include using namespace std; int main() { char cont = &#39;y&#39;; const int w = 3; vector > tbl; while (cont == &#39;y&#39;) { tbl.clear(); int num = -1; // FIXME A: replace false with comparisons for while loop that // ensures exit only if number input is between 1 and 9 inclusive while (false) { cout << "Enter how many numbers for table (1-9): "; cin >> num; cout // load vector // FIXME B: add/fix code so that this nested for loop fills // vector with values of multiplication for (int i = 0; i row; for (int j = 0; j // hint use push_back } tbl.push_back(row); } // display normal // First row cout // Horizontal Separator for (int i = 0; i // Rows of table // FIXME C: add code so that this nested for loop // outputs the values in the vector for (int i = 0; i // output value in vector } cout // display reversed // First row cout << " " << setw(w) << "|"; for (int i = num - 1; i >= 0; –i) { cout // Horizontal Separator cout // Rows of table // FIXME D: add code so that this nested for loop // outputs the values in the vector // HINT: should look like loop above for (int i = num – 1; i >= 0; –i) { cout << (i+1) << setw(w) << "|"; for (int j = num - 1; j >= 0; –j) { cout // output value in vector } cout << endl; } cout << endl; cout << "Do you want to do another? (y/n) "; cin >> cont; cout

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code FREE15