GRADED ACTIVITY #8 (M9.1): ONE-DIMENSIONAL ARRAY Instruction: There are two lists of numbers. Create a resultant list whose elements are the product of the elements of the two lists. Example: List A...


GRADED ACTIVITY #8 (M9.1): ONE-DIMENSIONAL ARRAY<br>Instruction:<br>There are two lists of numbers. Create a resultant list whose elements are the product of<br>the elements of the two lists.<br>Example: List A<br>List B<br>List C<br>630<br>500<br>21<br>30<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 B<br>List C<br>630<br>List A<br>21<br>30<br>50<br>10<br>500<br>25<br>10<br>250<br>Input the number of elements: 5<br>List B<br>List C<br>403<br>List A<br>31<br>13<br>21<br>30<br>630<br>50<br>10<br>500<br>60<br>41<br>2460<br>25<br>10<br>250<br>

Extracted text: GRADED ACTIVITY #8 (M9.1): ONE-DIMENSIONAL ARRAY Instruction: There are two lists of numbers. Create a resultant list whose elements are the product of the elements of the two lists. Example: List A List B List C 630 500 21 30 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 B List C 630 List A 21 30 50 10 500 25 10 250 Input the number of elements: 5 List B List C 403 List A 31 13 21 30 630 50 10 500 60 41 2460 25 10 250

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here