ONE-DIMENSIONAL ARRAY Instruction: There are two lists of numbers. Create a resultant list whose elements are the produc of the elements of the two lists. Example: List A 21 List B 30 List C 630 500...


please do not use array methods that are available on the internet


ONE-DIMENSIONAL ARRAY<br>Instruction:<br>There are two lists of numbers. Create a resultant list whose elements are the produc of<br>the elements of the two lists.<br>Example: List A<br>21<br>List B<br>30<br>List C<br>630<br>500<br>50<br>10<br>Write a Java program using a one-dimensional array that accepts as input an integer<br>value asking for the number of elements for each list. This will be used to generate random<br>numbers (10 to 99) for the one-dimensional arrays (List A and List B). The program will<br>compute for the product and store it in another array (List C). Display the result similar to<br>the Example above.<br>Sample Input/Output:<br>Depicted below are sample outputs when the program is executed (the items in bold<br>characters are input from the user, while the items in bold italic are generated,<br>calculated and printed by the program):<br>Input the number of elements: 3<br>List A<br>21<br>50<br>List B<br>30<br>10<br>List C<br>630<br>500<br>25<br>10<br>250<br>Input the number of elements: 5<br>List A<br>31<br>21<br>50<br>60<br>25<br>List B<br>13<br>30<br>10<br>41<br>10<br>List C<br>403<br>630<br>500<br>2460<br>250<br>

Extracted text: ONE-DIMENSIONAL ARRAY Instruction: There are two lists of numbers. Create a resultant list whose elements are the produc of the elements of the two lists. Example: List A 21 List B 30 List C 630 500 50 10 Write a Java program using a one-dimensional array that accepts as input an integer value asking for the number of elements for each list. This will be used to generate random numbers (10 to 99) for the one-dimensional arrays (List A and List B). The program will compute for the product and store it in another array (List C). Display the result similar to the Example above. Sample Input/Output: Depicted below are sample outputs when the program is executed (the items in bold characters are input from the user, while the items in bold italic are generated, calculated and printed by the program): Input the number of elements: 3 List A 21 50 List B 30 10 List C 630 500 25 10 250 Input the number of elements: 5 List A 31 21 50 60 25 List B 13 30 10 41 10 List C 403 630 500 2460 250

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here