A console application project written in C++ in the Embarcadero Rad Studio integrated development environment. Simple input/output. Working with arrays and random numbers. Calculating the arithmetic mean of array elements.
The program does the following:
- Prompts the user for the number of elements in the array.
- Allocates memory and creates an array of integers from the number of elements previously entered.
- Fills the created array with random positive integers from 1 to 100.
- Calculates the sum of the received elements.
- Divides the result by the number of elements in the array.