Consider the given below arrays
string[ ] countries = {"Denmark", "China", "Austria”, “England", "Belgium"};
int[ ] myNumbers = {6, 1, 8, 9, 2};
Write a C# program to perform the following array methods
•The string array should sort the countries in ascending or alphabetically order
•The integer array should print all numbers in reverse order
•Use only foreach loop for accessing (Answered)
Write a C# program that should declare & initializes single dimension array of type string called colors. The program should display the output based on the following requirements.
•It should display an array size using length property.
•It should access each element in an array using for loop only.
Make sure to add comments in the code. The program should generate the output as given in below (Answered)
Answer the following concepts of declaring and initializing an array in C# programming language using different ways.
A.Declare an array of five elements of type integer with keyword new, the array name is called values. Do not add elements to an array.
B.Declare an array of four elements of type string with keyword new, the array name is called seasons. Add elements to an array.
C.Declare an (Answered)
What are Methods in C-sharp programming language, what is the use of it and how to use methods using parameters? Write a summary of at least 300 words with at least two different examples of C-sharp programs. Make sure to use your own wording. No copy paste from the internet or textbook is allowed. Include at least one reference. (Answered)