Wednesday

January 28, 2015

January 28, 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 ...

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(...

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

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

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

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

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

Algebra - x^2+6x-44/x+9 X squared plus six X minus 44 divided by X+9. Having a ...