Question: CHALLENGE ACTIVITY 5 . 5 . 1 : Multiple arrays. 5 2 8 0 4 0 . 3 4 8 9 5 2 8 .
CHALLENGE
ACTIVITY
: Multiple arrays.
Start
Integer arrays originalArray and offsetArray are read from input, each containing five elements. Update each element in originalArray with originalArray's element multipled by the corresponding element in offsetArray.
Ex: If the input is:
table
then the output is:
for NUMVALS;
originalArray ;
for NUMVALS;
offsetArray i scnr nextInt;
Your code goes here
for originalArray. length; i
System.out.printoriginalArrayi;
System. out.println;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
