Question: IN C# PLEASE.... Section 1 : Enter the comment with the section title as described above. You will create a two - dimensional string array
IN C# PLEASE....
Section :
Enter the comment with the section title as described above.
You will create a twodimensional string array of elements named salesRegions.
The first row of the array will contain the names of the sales regions, North, South, East, and West. Rows and will contain the names of the personnel in
charge of those sales regions and are listed below. Fill the array with this data.
Print to the console the statement, "Section : TwoDimensional Array."
Using nested loops, display the contents of the array by sales region. See the expected output for an example.
Section :
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 twodimensional array in Section
Once created, use the twodimensional array to add the names in the North region to the salesTeam ArrayList. Note: 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 "Section : ArrayList."
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 "Stef" is 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 "Names currently in the salesTeam ArrayList" followed by all the elements remaining in the salesTeam ArrayList.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
