Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* Programming language: Java Multi-Dimensional Arrays Create main class named MultiArray. Create a method which outputs (prints) all the values in the array. Call this

image text in transcribedimage text in transcribedimage text in transcribed

* Programming language: Java Multi-Dimensional Arrays Create main class named MultiArray. Create a method which outputs (prints) all the values in the array. Call this method from each of the other methods to illustrate the data in the array. Note: Be sure to populate, and update the values in the multi-array, and then print the contents of the multi-array (Don't just print the design patterns.) The goal is to practice navigating the multi-array. Declare a multi-dimensional array of integers, which is 10 rows of 10 columns (10 by 10). In your code, set the initial values to ones' such as this: 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 1111111111 526 words Create a method named "patternRow." Using control loops, (if, then / then / else ) set the data values to 1's and O's, alternating by rows, such as this: 0000000000 1111111111 0000000000 1111111111 0000000000 1111111111 0000000000 1111111111 0000000000 1111111111 526 words Create a method named "patternCheckered." This method should set the values to alternative 1's and O's, such as this: 0101010101 1010101010 0101010101 1010101010 0101010101 1010101010 01010101011 1010101010 0101010101 1010101010 Create a method named "userChoice." Prompt the user to enter three numbers. Set the array data to be the sequence of numbers they enter, such as this: Please enter your choice: 1 Please enter your choice: 7 Please enter your choice: 5 175175 1751 7517517517.. Create a method named "sumArray" which sums all the numbers together. Output totals for each row, and a grand total. 526 words

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

Step: 3

blur-text-image

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

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

1. Identify and control your anxieties

Answered: 1 week ago