Question: Code the following array declaration: intI] myIntegerArray -(4, 3, 2, 1): 2.1 TASK Display the value of the last element of the array. The array
![Code the following array declaration: intI] myIntegerArray -(4, 3, 2, 1):](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f32ad93abb9_24866f32ad8a555d.jpg)
Code the following array declaration: intI] myIntegerArray -(4, 3, 2, 1): 2.1 TASK Display the value of the last element of the array. The array index you use should be an expression that includes the length of the array. Add another element to the end of mylntegerArray's initialiser list. Show your expression works no matter what the length of the array is. After the test, remove the element you just added to the initialiser list. 2.2 TASK Display the product when all the elements of the array are multiplied together. Don't use the variable "myintegerArray" instead use the variable "a". You will need to declare "a" and assign an appropriate value to it. 2.3 TASK Code and display the value of an expression that return true if the third element in the array is the square root of the first element in the array. It should return true for the array 14, 3, 2, 13 by the way
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
