Question: CSCI 1301 B Lab #12 1D arrays Copy One Array to Another Array of the Same Size Write a program that 1. get 5 integer
CSCI 1301 B Lab #12 1D arrays Copy One Array to Another Array of the Same Size Write a program that 1. get 5 integer inputs from the console window and stores them in an int array (the first array) with size 5, 2. prints the size of this array using the "length" 3. creates a second int array with size 5 and prints out the contents of the second array using a for-loop (it should show five zeros as the defaults values of the array elements) 4 copy the data from the first array to the second array using a second for-loop; 5. prints out the contents of the second array using a third for-loop (it should show the same five integers that were used to initialize the first array). Submission: Submit your source code in folio using the dropbox folder Lab 12 Please note: You must finish this work during the lab period. If you do not finish, just hand in what you have at the end of the lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
