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, 21.06.2019 21:00
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
You know the right answer?
Double[ ] a1 = new double[some length]; double[ ] a2 = new double[some length]; // assume that the...
Questions
question
History, 10.04.2020 17:39
question
Mathematics, 10.04.2020 17:39