Monday

March 30, 2015

March 30, 2015

Posted by **nutz** on Monday, January 21, 2013 at 7:31am.

Please write me step by step instructions or how should I begin the problem.

Thank you for your time ;)

Write a function that takes an array and returns true if all the elements in the array are positive, otherwise, it returns false.

- Computer Science -
**Steve**, Monday, January 21, 2013 at 11:02amhere's some pseudo-code that you can easily implement in the language of your choice:

function allplus(int[] a) {

for each i in a

if (a[i] <= 0) return false

next

return true

}

**Answer this Question**

**Related Questions**

Algebra 1 - How do you write the equation of a line if you have two points? ...

algebra - The area of the wall you are going to paint is 50 feet2. If the width ...

Science - A sneeze causes you to mementarily shut your eyes. If this process ...

chemistry - This question I really don't get it. I tried tried tried to figure ...

Chemistry - Consider the following problem: Target: 2NOCl(g) ? N2(g)+ O2(g)+Cl2...

Chemistry Urgent - Consider the following problem: Target: 2NOCl(g) ? N2(g)+ O2(...

8th grade - I am having trouble with these kinds of problems and I ask my ...

calculus-- need help desperately! - The Taylor series about x=5 for a certain ...

chemistry - Consider the following problem: Target: 2NOCl (g) ¡æ N2 (g) + O2 (g...

Chemistry - Consider the following problem: Target: 2NOCl (g) ¡æ N2 (g) + O2 (g...