Ready labs Pascal (UGNTU)
Develop a program receiving and processing one-dimensional array, consisting of four parts.
Part 1: Calculate the value of 30 elements dimensional integer array Y in the interval (-8,8), using a random number generator.
For the whole random number y on the interval [a, b] in Pascal use the following statement:
y [i]: = a + ROUND ((ba) RANDOM (100) 100).
For every time you start the program to get a new sequence of random numbers, it is necessary at the beginning of the program to execute the operator RANDOMIZE.
Part 2: Calculate the amount of each second the last third of the array elements.
Part 3: Determine the largest element among the odd elements of the value of the first quarter of the array.
Define the array element - it means to find its position (index) in the array and its value ..
Part 4. Arrange odd number of elements of the second third of the array ascending module inverses.
The source array are arranged only those items that meet specified conditions, with the remaining elements of its position and retain sub-array is not used.
To check the ordering of all or part of the array to display all of its elements.
Number of options 21
All reports are decorated in the archive attached to the work assignment + sample of works