1 declare an array named grades of twenty elements of type int 2 assume that the arr 5346508

1. Declare an array named grades of twenty elements of type int. 2. Assume that the array values has been declared. In addition, assume that ARR_SIZE has been defined to be an integer that equals the number of elements in values. Write a statement that assigns the third element of the array to the variable number (number is already declared). 3. Assume that the array weeklySales of integers has already been declared and that its elements contain sales data for the 7 days of the week in order (i.e., Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday). Write a statement that writes to standard output the element corresponding to Tuesday. 4. Assume that an array named numbers, containing exactly five integers has been declared and initialized. Write a single statement that adds 23 to the value stored in the first element of the array. 5. Given that an array of int named numbers has been declared, and that the integer variable size contains the number of elements of the array numbers, assign 45 to the last element in numbers. 6. Assume that an array of int named numbers has been declared with 12 elements and that the integer variable count holds a value 0 and 6. Assign 5 to the array element whose index is count. 7. Assume that an array of integers named numbers that contains exactly five elements has been declared and initialized. Write a single statement that assigns a new value to the last element of the array. This new value should be equal to half the value stored in the first element of the array. 8. Declare an array named samples of 4 elements of type char and initialize the elements (starting with the first) to the first four lowercase letters of the alphabet, respectively. 9. Given an array rain of double, containing rainfall data, and an int variable size that contains the number of elements in rain : Compute the average rainfall and store it in a variable called avgRain. Besides rain, size, and avgRain, you may use only two other variables

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now