Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Working with Multi-Dimensional Arrays and Array Lists

Working with Multi-Dimensional Arrays and Array Lists

Working with Multi-Dimensional Arrays and Array Lists

Description

Outcomes addressed in this activity:

Unit Outcomes:

Explain the need for multi-dimensional arrays.

Create a multi-dimensional array.

  • Course Outcome practiced in this unit:
  • IT232-2: Compose software using advanced interface and program design techniques.

Purpose

The purpose of this assignment is to provide you with an opportunity to demonstrate knowledge of creating and manipulating multi-dimensional arrays and array lists.

Assignment Instructions

You will complete a single program containing multiple sections to demonstrate the skills presented in this lesson for your selected language path. Please keep in mind that with all the assignments in this course, any given scenarios are hypothetical and intended solely to demonstrate specific skills.

Note: If your language of choice is Web Development, you will need to complete the exercises in both PHP and JavaScript.

Using the language in which you have chosen to focus: C#, Java, Web Development languages (PHP and JavaScript), please complete the following Assignment:

The program for this assignment will consist of two sections, each headed by the three-line comment below:

//*********************************************************

//****Assignment 3 Section X

//*********************************************************

(where X stands for the portion of the assignment to follow)

Assignment Requirements

Section 1:

Enter the comment with the section title as described above.

You will create a two-dimensional string array of 4×4 elements named salesRegions.

The first row of the array will contain the names of the sales regions, North, South, East, and West. Rows 2, 3, and 4 will contain the names of the personnel in charge of those sales regions and are listed below. Fill the array with this data.

North

  1. South
  2. East
  3. West

Bob

Sue

Nathan

Wanda

Stef

Janice

Henry

Charles

Ron

Will

Kimmy

Pete

Print to the console the statement, åction 1: Two-dimensional Array./p>

Using nested loops, display the contents of the array by sales region. (See the expected output for an example.)

Section 2:

Enter the comment with the section title as described above.

Create an arraylist called salesTeam. The arraylist will contain the names of the sales team members responsible for the sales in that region. (Hint: This is using the collection tool, arraylist, and is not a standard array like the two-dimensional array in section 1.)

Once created, use the two-dimensional array to add the names in the North region to the salesTeam arraylist. (Notice: You are just adding the names of the people, not the name of the region. So, in this case the names added should be Bob, Stef, and Ron.)

Print to the console a blank line and the statement, åction 2: Array List./p>

Using the methods available in the arraylist class, display the current number of elements in the salesTeam arraylist.

Next, add the names of the people from the South region to the salesTeam arraylist.

Using the appropriate method available in the arraylist class, check to see if ôef)s in the salesTeam arraylist and print a statement as to whether or not Stef is in the list.

Display the number of items in the salesTeam arraylist.

Remove Janice and Ron from the salesTeam arraylist.

Display the number of items in the salesTeam arraylist.

Using a loop, display ¡mes currently in the salesTeam arraylist.&ollowed by all the elements remaining in the salesTeam arraylist.

EXPECTED OUTPUT

Section 1: Two-dimensional Array.

North

Bob

Stef

Ron

South

Sue

Janice

Will

East

Nathan

Henry

  1. Kimmy
  2. West

Wanda

Charles

  1. Pete
  2. Section 2: Array List.
  3. There are 3 names in the salesTeam arraylist.
  4. Stef is in the salesTeam arraylist.
  5. There are 6 names in the salesTeam arraylist.
  6. There are 4 names in the salesTeam arraylist.
  7. Names currently in the salesTeam arraylist.
  8. Bob
  9. Stef
  10. Sue
  11. Will

Directions for Submitting Your Assignment

The source code file is the file in your project that contains the code you wrote. You will only need to submit the source code file for your program and not the entire project folder or any additional project files. Below are listed the file extensions for the source code file for each language:

.cs file for C#

.java file for Java

.php and .js files for Web Development 

Explanation & Answer:

1 Task
User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Essay Noon only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Essay Noon are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Essay Noon are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Essay Noon, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20