Question: QUESTION 1 a) Assuming an array named list is initialized as shown in Figure 7. 8.2 2.5 6.6 9.0 3.4 4.5 Figure 7 1) Write

 QUESTION 1 a) Assuming an array named list is initialized as

QUESTION 1 a) Assuming an array named list is initialized as shown in Figure 7. 8.2 2.5 6.6 9.0 3.4 4.5 Figure 7 1) Write an appropriate declaration for array list and initialize it to the values given in Figure 7. (2 marks) ii) Identify the values assigned to x and y in Figure 8. after each of the following statement is executed. x = list[0] + list[4]; y = list[3] / 2 + list[2]; Figure 8 (2 marks) b) Write a C++ program segment to print the index of the largest and smallest numbers in an array intList of 10 integers. Assume that an array intList already has values assigned to each element. (6 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!