Question: Write a program that displays a 2D multiplication table based on row and column value specified by the user. Perform a data validation to ensure

Write a program that displays a 2D multiplication table based on row and column value specified by the user. Perform a data validation to ensure the number of rows and columns given by the user exist on the interval [1, 10]. If possible, protect against inputs that contain symbols that would normally crash the program (i.e. letter, symbols, numbers containing a decimal point, etc..)

When designing your solution, you must demonstrate your understanding of double pointers (int**), and dynamic memory. Store the internal portion of the table (i.e. the numbers on the inside that represent the products) in a dynamic two-dimensional array (heap memory). Reference the contents of the array with a double pointer and use two indexes to access the contents. The row labels, column labels, and gridwork on the table should not be stored in the array. The looping portion of the programs main logic should be responsible for this part of the display.

When completing this assignment, you may use any of the programming skills you currently know to-date while trying to adhere to the stated solution restraints. Input and output must be accomplished with the C++ mechanisms (cout & cin). Additionally, you must #include in order to gain access to format modifiers like setw() to create your display.

The program is to be run & tested on is Visual Studio 2015 or Visual Studio 2017.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!