Question: 2. Table Creator Program Create a .cpp program named hw5-2.cpp that will create a table as shown below where the user can specify by user

2. Table Creator Program Create a .cpp program named hw5-2.cpp that will create a table as shown below where the user can specify by user input how many rows and columns to display. Sample: Enter how many columns you want your table to have: 4 Enter how many rows you want your table to have: 3 Row 1 Column 1 Row 1 Column 2 Row 1 Column 3 Row 1 Column 4 Row 2 Column 1 Row 2 Column 2 Row 2 Column 3 Row 2 Column 4 Row 3 Column 1 Row 3 Column 2 Row 3 Column 3 Row 3 Column 4 The main module of the program should do three things: accept in user input for how many columns the user wants, accept in user input for how many rows the user wants, call a user-defined function (module) passing in these two parameters. The function will then print a table using a nested loop as shown above. Use two tabs (\t\t) between each Row x Column y. You will have to search online to find out how to not have a print command start a new line. Then, start a new line after each row. Note: If you create a lot of columns, the window may print them on a new line if it is too small to accommodate them all.

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!