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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started