Search for question
Question

2. [30 points] A vector is given by x = [9, -1.5, 13.4, 13.3, -2.1, 4.6, 1.1, 5, -6.1, 10, 0.2]. Using conditional statements and loops, the following program rearranges

the elements of x in order from the smallest to the largest. Draw a flow chart that represents this problem. Submit as a word or pdf document.

Fig: 1

Fig: 2

Fig: 3