Create an array that will hold 6 doubles. Assign a unique value to each spot in the array, one by one. You can put these values directly in your code yourself. No scanner needed. Use a loop to loop...




  1. Create an array that will hold 6 doubles.




  2. Assign a unique value to each spot in the array, one by one. You can put these values directly in your code yourself. No scanner needed.




  3. Use a loop to loop through the array and print each value stored in the array. Also, sum all of the values together in this loop.




  4. Finally, print out the final sum.





Example Output:



The values stored in your array are:


3.1, 5.2, 8.3, 2.4, 9.5, 10.6


The sum of these values is: 39.1


The square root of 39.1 is: 6.25



in java



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here