Answer to Question #1945 in C# for Adam
Write a program that prompts the user for three numbers;
a) The number of random numbers to generate
b) The lowest number in the desired range
c) The highest number in the desired range
Your program will then create an array of the appropriate size, and fill it with random numbers in the desired range.
Print out the array.
Write a loop to calculate the sum of the array. Print out the sum and the average value.
Write another loop to print out every other value.
After the array is filled, write a loop to calculate
__ The sum of the even numbers in the array
__ The sum of all the numbers in the array that are less than the average value
__ The product of every third element
Add a user entry loop at the end of the program that asks the user for a number, and then prints the number that is stored at that location in the array. Also print the square and the square root of the number. The user entry loop should end when the user types “Exit” (case insensitive).
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!