Please use C++ and do it from scratch and please share codes too. And Please do both.
Task 1: "Resize a traditional array" Fill array sample array[10] with random integers between 1-1000.
Use Dynamic Array Syntax to copy the elements sample array[10]
into newarray[20] and fill the remaining memory locations.
Display values in sample array[10] Display the values in newarray[20] Attach Snipping Photos of Source Code and Output
Task 2: "Resize a traditional array"
Implement the above process from Task 1 using a vector.
Fill vector samplevector(10) with random integers between 1-1000.
Create an initial vector of that holds 10 elements and resize the vector to hold 20 elements Display values in samplevector(10)
Display the new values in sample(20) Attach Snipping Photos of Source Code and Output