subject

Double[ ] a1 = new double[some length]; double[ ] a2 = new double[some length]; // assume that there is code here that prompts the user to enter these double // values and stores them in a1 and a2. you don't know what the user will type, but // you may assume that the code is correct and no errors occur in this portion of the program. // complete your code below this line add code to do the following: declare an additional array of of doubles (based on the length of a1 or a2) fill the new array with the product of the corresponding elements in a1 and a2 print the values stored in the new array to the screen for example, if the first two arrays hold the following values: {1.2, 2.3, 3.4, 4.5, 5.6} and {1.0, 2.0, 3.0, 4.0, 5.0}, your array should be filled with the following values: {1.2, 4.6, 10.2, 18.0, 28.0}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
You know the right answer?
Double[ ] a1 = new double[some length]; double[ ] a2 = new double[some length]; // assume that the...
Questions
question
Mathematics, 03.02.2021 22:00
question
Mathematics, 03.02.2021 22:00
question
Mathematics, 03.02.2021 22:00
question
History, 03.02.2021 22:00
question
Mathematics, 03.02.2021 22:00
question
Biology, 03.02.2021 22:00
question
Mathematics, 03.02.2021 22:00
question
Mathematics, 03.02.2021 22:00
Questions on the website: 13722362