Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions