Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Here is the question Write a function thattakes a list of integers and returns t

ID: 3612918 • Letter: H

Question

Here is the question Write a function thattakes a list of integers and returns the sum of all theodd-numbered members of the list. Given a list
[ 1 2 3 4 5 6] it returns 1+3+5 =9. Given [1 0 1 0 1 0] itreturns
1+1+1=3. Your program should prompt the user for an integer inputuntil the input is negative. Throw away the negative number, putthe positive numbers in a list and compute the answer asdescribed. Need it in Java Here is the question Write a function thattakes a list of integers and returns the sum of all theodd-numbered members of the list. Given a list
[ 1 2 3 4 5 6] it returns 1+3+5 =9. Given [1 0 1 0 1 0] itreturns
1+1+1=3. Your program should prompt the user for an integer inputuntil the input is negative. Throw away the negative number, putthe positive numbers in a list and compute the answer asdescribed. Need it in Java Need it in Java

Explanation / Answer

x.