Question: In Java please. Write a program that reads two lists of integers from input into two arrays and outputs the sum of multiplying the corresponding

In Java please. Write a program that reads two lists of integers from input into two arrays and outputs the sum of multiplying the corresponding list items. The program first reads an integer representing the length of each list, followed by two lists of integers.
Ex: If the input is:
3
123
321
the program calculates (1*3)+(2*2)+(3*1) and outputs
10
Ex: If the input is:
4
2345
1111
the program calculates (2*1)+(3*1)+(4*1)+(5*1) and outputs
14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!