Question: C# Develop a program with the following requirements: a) It must have an array that allows storing 5 elements of numeric type (whole). b) The
C# Develop a program with the following requirements: a) It must have an array that allows storing 5 elements of numeric type (whole). b) The values that each position will store will be generated randomly (random) and must be values from 1 to 100. c) Present the five values of the elements and the sum of the five elements. d) Indicate the number of elements whose value is between: 1 and 20; 21 and 40; 41 and 60; 61 and 80; 81 and 100. e) In a second array, you must store the sum of the elements that are in the ranges of values presented in point "d".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
