Question: In C#, the ArrayList is a non-generic collection of objects whose size increases dynamically. The ArrayList class represents an array list, and it can contain
In C#, the ArrayList is a non-generic collection of objects whose size increases dynamically. The ArrayList class represents an array list, and it can contain elements of any data types. Suppose you are given a random list of student marks shown below 56, 85, 42, 73, 65, 30, 90, 75, 40, 25 Demonstrate your knowledge of array implementation in C# by answering the following questions. 1.1 Create an Arraylist called smarks. (3 Marks) 1.2 Store these marks in smarks array and display the members of the arrayList. (4 Marks) 1.3 Arrange and display the elements in a sorted order. (4 Marks) 1.4 Get the total number of elements contained in the Arraylist.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
