Name: someguy 2009-01-04 16:10
Guys i need help for this fastttt please!
Declare and initialize two arrays of 64 integers as part of the program. The program:
1. fills the array x using the formula x[i]=-(i-10)* (i-10)+1000, where i is the index: 0-63;
2. finds the minimum element of the array x and displays it and its position to the terminal window;
3. calculates the sum of the elements of array x and displays it to the terminal window;
4. copies the array x to array y.
Each subtask should be written as a call of a user function.
Declare and initialize two arrays of 64 integers as part of the program. The program:
1. fills the array x using the formula x[i]=-(i-10)* (i-10)+1000, where i is the index: 0-63;
2. finds the minimum element of the array x and displays it and its position to the terminal window;
3. calculates the sum of the elements of array x and displays it to the terminal window;
4. copies the array x to array y.
Each subtask should be written as a call of a user function.