Question: Write a Java program which will allow the user to enter integer values to be stored in a square 2D array. The user gets to

 Write a Java program which will allow the user to enter

Write a Java program which will allow the user to enter integer values to be stored in a square 2D array. The user gets to choose how big the array will be (ie how many rows/columns). The program should store the values entered by the user in a 2D array in order from top to bottom and left to right. For example, if the user initially enters 1,2,3,4,5,6,7,8 and then 9 for the integers to be stored, the following array would be created: After the initial array is created, the user gets to choose from the following menu: 1. Print the array 2. Print the array transposed 90 degrees to the right 3. Print the array transposed 180 degrees to the right 4. Print the array transposed 270 degrees to the right 5. Exit Here are some examples of the output from menu options 2-4 based on the initial input above: Note that you may NOT use any methods from the Array class in this project. Also, you are not changing how the numbers are stored in the array. You are only printing the array in different ways

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!