Question: Create a C# Console application that uses two methods: - Method 1: Randomly populate an array with integers numbers between 10 and 50 . The

 Create a C\# Console application that uses two methods: - Method

Create a C\# Console application that uses two methods: - Method 1: Randomly populate an array with integers numbers between 10 and 50 . The array length is a parameter for the method. - Method 2: Return the summation of all the elements of an array (the array is the parameter for this method). The program has to follow the instructions below: 1. Ask the user to enter an integer number betwen 5 and 15. 2. Use a try/catch block to validate the user's entry. 3. Use a conditional statement to check the user's entry is between 5 and 15. 4. Use Method 1 to randomly populates an array with a length equal to the user's input. 5. Display in the console all the elements the in the array. 6. Use Method 2 to sum all the elements in the array from step 4. 7. Display in the console the value from step 6. Example: Input: 5 Output: The elements of the arrays are: 3930344934 The sum is: 186

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!