Question 1 Write one or more statements that perform the following tasks for an array called fractions: a. Define a cons
Posted: Sun Jul 10, 2022 11:31 am
Question 1 Write one or more statements that perform the following tasks for an array called fractions: a. Define a constant integer variable arraySize initialized to 10. b. Declare an array with arraysize elements of type double and initialize the elements to 0. c. Display the fourth element of the array. d. Assign the value 1.2 to array element 9. e. Print array elements 6 and 9 on the screen. f. Print all the elements using a for statement. Define the integer variable i as a control variable for the loop. Show the output.