Question: Given an input integer n, followed by n additional input integers for an array, write an algorithm in Coral that will find the sum

Given an input integer n, followed by n additional input integers for


Given an input integer n, followed by n additional input integers for an array, write an algorithm in Coral that will find the sum of all the negative odd integers in the array. Below is a partially-complete algorithm: integer n integer array(?) A integer i integer sum n = Get next input. A.size = n sum=0 i = 0 while (in) A[i] = Get next input i = i + 1 i=0 while (in) if (???) sum sum +A[i] i= i+1 Put sum to output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer To complete the algorithm in Coral to find the sum of all the negative odd integers ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!