1.2 + 2.8 + 1.0 = 5.0
In answering the question you could start with
the number on the left, and then proceed left to right through the remaining numbers.
Here is a program that does that to sum the numbers in an array.
This array
contains values of type double
.
Complete the program by filling in the blanks.