Question: Write a program in a cpp file called MultiplicationTable_LastNameFistName.cpp that involves writing a C++ program that produces a multiplication table in two dimensional array. The
Write a program in a cpp file called MultiplicationTable_LastNameFistName.cpp that involves writing a C++ program that produces a multiplication table in two dimensional array. The first row consists of the multipliers and while the first column consists of the multipliers.
For instance, if the user type in 6 for n, the multiplication table should look like the output below:

The value of n should be obtained from a user, but by default it may be initialized to 10. Note: 1. Create a two dimensional array of integer data type with generous space, for instance, the default should be initialized to 10x10. 2. Prompt a user for n. If the user value is less than zero or above your multidimensional array 10, then prompt the user for another proper value.
int GetArrayTableSize(int & UserInput); 3. Populate the multidimensional array with the multiplication table.
void PopulateArray(int[10][10], int row, int col, int UserInput) 4. Print the multidimensional array
void PrintArray(int[10][10], int row, int col, int UserInput) 5. Save the multidimensional array into a file called "mtable_LastNameFirstName.txt".
void SaveArralToFile(int[10][10], int row, int col, int UserInput)
'hich multiplication table would you like to see? t6 1 234 5 6 4 5 6 8 10 12 6 9 12 15 18 8 12 16 20 24 5 10 15 20 25 30 6 12 18 24 30 36 4 4 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
