Create a class that asks the user for the number of rows


Lab Assignment- Nested Loops

Make sure to use a nested loop for each of these projects.

1. Create a class that asks the user for the number of rows and the number of columns, and prints out a design (your choice - * or [] or whatever) in that number of rows and columns given by the user.

Ex.
Rows: 3
Cols: 2

**
**
**

2. Create a class that prints the multiplication table that uses the numbers from 1 - 12 on the top row and leftmost column. Make sure to print out the products in the correct spaces. Adjust your spacing so that everything lines up - utilize \t for tabs.

    1    2    3    4     5      6 ...
1  1    2    3    4     5      6...
2  2    4    6    8     10    12...
3  3    6    9    12   15    18...
4  4     8   12   16   20   24... ...

3. Create a class that will ask the user for a positive integer input, then print out the following pattern based on the int input.

Ex if input is 5:
        5
      45
    345
  2345
12345

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a class that asks the user for the number of rows
Reference No:- TGS02714506

Expected delivery within 24 Hours