need question 3 assap using cin and cout outputs please Ctrl CSC 270 Final Exam-Spring2 1) [10 pts] Create anarray x which includes integers fron ltos obtain the array y which, even formula. Displ...
Ctrl CSC 270 Final Exam-Spring2 1) [10 pts] Create anarray x which includes integers fron ltos obtain the array y which, even formula. Display both arrays x and y in a table with labeled column headings. 0 y- 2x+1 2) 120 pts] Consider the following 2D array. 01 2 -1 X-3 5 0 6 -3 7 -15 Use the standard notation and obtain the following (a) Create and display array x (b) Find the value in 2nd row and 4th column (c) Find the minimum value of first row (d) Find the sum of the elements in each row separately For each part you should have a meaningful output as below (a) X (b) value in 2nd row and 4th column: (c) minimum value in row 1: (d) sum of the elements in rowl sum of the elements in row2 sum of the elements in row3: 3) [5 pts] Create two variables called a and b. Make two pointers to a and b and call them pointer 1 and pointer 2. If a-1 and b 2 display the following (a) Value of a and memory address of a (b) Value of b and memory address of b (c) Value at pointer 1 and memory address of pointer 1 (d) Value at pointer 2 and memory address of pointer 2 4) [5 pts] Ask the user to enter few integers. User can enter any positive integer(odd or even or greater than 10). Create a stack of even integers which are between 1- 10. Display the stack.
Ctrl CSC 270 Final Exam-Spring2 1) [10 pts] Create anarray x which includes integers fron ltos obtain the array y which, even formula. Display both arrays x and y in a table with labeled column headings. 0 y- 2x+1 2) 120 pts] Consider the following 2D array. 01 2 -1 X-3 5 0 6 -3 7 -15 Use the standard notation and obtain the following (a) Create and display array x (b) Find the value in 2nd row and 4th column (c) Find the minimum value of first row (d) Find the sum of the elements in each row separately For each part you should have a meaningful output as below (a) X (b) value in 2nd row and 4th column: (c) minimum value in row 1: (d) sum of the elements in rowl sum of the elements in row2 sum of the elements in row3: 3) [5 pts] Create two variables called a and b. Make two pointers to a and b and call them pointer 1 and pointer 2. If a-1 and b 2 display the following (a) Value of a and memory address of a (b) Value of b and memory address of b (c) Value at pointer 1 and memory address of pointer 1 (d) Value at pointer 2 and memory address of pointer 2 4) [5 pts] Ask the user to enter few integers. User can enter any positive integer(odd or even or greater than 10). Create a stack of even integers which are between 1- 10. Display the stack.