Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is java and please must follow the instruction and must put //(comment) and make simple program. Thank you 2. In this program, we are

This is java and please must follow the instruction and must put //(comment) and make simple program. Thank you

2. In this program, we are going to create a 2 dimensional array and print its contents as a table. We will create a multiplication table similar to what we did with nested loops in the previous lab.

a. Create a class named TwoDArrayTester

b. Create a two dimensional array with 9 columns and 10 rows.

c. Create nested loops. Inside the loops multiply the column by the row. The only issue is the the index is 1 less than the desired number so you must add 1 to it. You code should look something like: twoDArray[i][j] = (i+1) * (j+1);

d. Create another nested loop to print the table. Remembering what you did in the previous lab to get the table to print correctly (adding spaces for values <10), print the table.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions