Topics Covered: ARRAY To know what arrays are • Implement a program to apply array manipulation And apply how to declare arrays • Declare, define, and initialize arrays • Write programs that access...


 Create an array of 15 integers.  Add all elements located


at ODD index positions and sum also all numbers located at EVEN(Assume


zero index is even) index positions in the linear array. The user  will be the one to input each


item in the array of 15 elements.  Display also the inputted integers in the array.  Given the sample layout w/ test data below:


Topics Covered:<br>ARRAY<br>To know what arrays are<br>• Implement a program to apply array manipulation<br>And apply how to declare arrays<br>• Declare, define, and initialize arrays<br>• Write programs that access data in the array list<br>Objectives:<br>Description<br>Create an array of 15 integers. Add all elements located<br>at ODD index positions and sum also all numbers located at EVEN(Assume<br>zero index is even) index positions in the linear array. The user will be the one to input each<br>item in the array of 15 elements. Display also the inputted integers in the array. Given the<br>sample layout w/ test data below:<br>Sample Output if Applicable<br>INPUT:<br>CA Z:\CCS122-1L13FBC -1 \ARRAY1.EXE<br>Enter 15 integers in the array:<br>Nun [0]: 10<br>Nun [1]: 200<br>Nun [2]: -3<br>Nun [31: 0<br>Nun [4): 12<br>Nun [5): 14<br>Nun [6): 45<br>Nun [?): 67<br>Nun [8]: 89<br>Nun [9): -56<br>Nun [10]: 21<br>Nun [11]: 126<br>Nun [12]: 49<br>Nun [131: 1<br>Nun [14): 3<br>OUTPUT:<br>Inputted elements in the ARRAY are:<br>Num (Ø]: 10<br>Num [1]: 200<br>Num [2]: -3<br>Num [3]: 0<br>Num [4]: 12<br>Num [5]: 14<br>Num [6]: 45<br>Num [7]: 67<br>Num [8]: 89<br>Num [91: -56<br>Num [10]: 21<br>Num [11]: 126<br>Num [121: 49<br>Num [13]: 1<br>Num [141: 3<br>Sum of all items at ODD [index]: 352<br>Sum of all items at EU EN [index]: 226,<br>

Extracted text: Topics Covered: ARRAY To know what arrays are • Implement a program to apply array manipulation And apply how to declare arrays • Declare, define, and initialize arrays • Write programs that access data in the array list Objectives: Description Create an array of 15 integers. Add all elements located at ODD index positions and sum also all numbers located at EVEN(Assume zero index is even) index positions in the linear array. The user will be the one to input each item in the array of 15 elements. Display also the inputted integers in the array. Given the sample layout w/ test data below: Sample Output if Applicable INPUT: CA Z:\CCS122-1L13FBC -1 \ARRAY1.EXE Enter 15 integers in the array: Nun [0]: 10 Nun [1]: 200 Nun [2]: -3 Nun [31: 0 Nun [4): 12 Nun [5): 14 Nun [6): 45 Nun [?): 67 Nun [8]: 89 Nun [9): -56 Nun [10]: 21 Nun [11]: 126 Nun [12]: 49 Nun [131: 1 Nun [14): 3 OUTPUT: Inputted elements in the ARRAY are: Num (Ø]: 10 Num [1]: 200 Num [2]: -3 Num [3]: 0 Num [4]: 12 Num [5]: 14 Num [6]: 45 Num [7]: 67 Num [8]: 89 Num [91: -56 Num [10]: 21 Num [11]: 126 Num [121: 49 Num [13]: 1 Num [141: 3 Sum of all items at ODD [index]: 352 Sum of all items at EU EN [index]: 226,
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here