Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started