Question 2) Write a user defined function called MultTable. MultTable will display the multiplication table based on the numbers and rows the user enters. The user defined function takes two int pointer reference parameters representing the number of rows and columns. The user will be asked to enter the values inside the main function. Output needs to be formatted nicely like in the sample. Pointers are required to receive full credit for the problem. If pointers aren't used, then no credit will be given. Sample output for question 2: Enter number of rows: 10 Enter number of columns: 10 1 2 31 4 6 7 8 9. 10 2 6 8 10 12 14 16 18 20 3 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8. 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 7460O

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Q IN PICTURE

**C PROGRAMMING LANGUAGE 

**PLEASE PUT SOME COMMENTS

** DOUBLE CHECK IF IT WORKS

**Task: Multiplication Table Function Implementation**

**Description:**

Create a user-defined function named `MultTable`. This function will generate and display a multiplication table based on the number of rows and columns specified by the user. The function should take two integer pointer parameters representing the number of rows and columns. Users will input these values in the main function. Proper formatting of the output is necessary to match the provided sample. Usage of pointers is mandatory to receive full credit for this assignment.

**Sample Output Example:**

The program requests the user to "Enter number of rows" and "Enter number of columns". In the example, the user inputs 10 for both, resulting in a 10x10 multiplication table:

```
Enter number of rows: 10
Enter number of columns: 10

   1   2   3   4   5   6   7   8   9  10
   2   4   6   8  10  12  14  16  18  20
   3   6   9  12  15  18  21  24  27  30
   4   8  12  16  20  24  28  32  36  40
   5  10  15  20  25  30  35  40  45  50
   6  12  18  24  30  36  42  48  54  60
   7  14  21  28  35  42  49  56  63  70
   8  16  24  32  40  48  56  64  72  80
   9  18  27  36  45  54  63  72  81  90
  10  20  30  40  50  60  70  80  90 100
```

The table is displayed in a grid format, with each cell containing the product of its row and column numbers.
Transcribed Image Text:**Task: Multiplication Table Function Implementation** **Description:** Create a user-defined function named `MultTable`. This function will generate and display a multiplication table based on the number of rows and columns specified by the user. The function should take two integer pointer parameters representing the number of rows and columns. Users will input these values in the main function. Proper formatting of the output is necessary to match the provided sample. Usage of pointers is mandatory to receive full credit for this assignment. **Sample Output Example:** The program requests the user to "Enter number of rows" and "Enter number of columns". In the example, the user inputs 10 for both, resulting in a 10x10 multiplication table: ``` Enter number of rows: 10 Enter number of columns: 10 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 ``` The table is displayed in a grid format, with each cell containing the product of its row and column numbers.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education