The range of a set of values is the difference between the highest value and the lowest value in the set. Write a C/C++ program that prompts the user to enter N integer values and stores it in an array. Calculate and display the range of the values, as well as the largest and smallest values in the set. TIP: you can declare an array of size N by declaring the array after the user enters a value for N! Part 2 Write a C/C++ program that prompts the user to enter N integer values and stores it in an array. Display the array’s elements in reverse order. Part 3 Write a C/C++ program that prompts the user to enter N integer values and stores it in an array. Sort the elements of the array in ascending order. You may use any sorting algorithm.
Part 1
The range of a set of values is the difference between the highest value and the lowest value in the set. Write a C/C++
TIP: you can declare an array of size N by declaring the array after the user enters a value for N!
Part 2
Write a C/C++ program that prompts the user to enter N integer values and stores it in an array. Display the array’s elements in reverse order.
Part 3
Write a C/C++ program that prompts the user to enter N integer values and stores it in an array. Sort the elements of the array in ascending order. You may use any sorting
Step by step
Solved in 4 steps