The given below single dimension array of type integers called MyNumbers.
int[ ] myNumbers = {3, 3, 1, 5, 2, 4, 1}
Write a C# program that should display the output based on the following requirements.
•It should display the smallest value in an array
•It should display the largest value in an array
•It should display the sum of all elements in an array
Make sure to add comments in the code. (Answered)
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)
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)