Computer Science
posted by nutz
I need help with this question please!
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.

Steve
here's some pseudocode 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
}
Respond to this Question
Similar Questions

Science
A sneeze causes you to mementarily shut your eyes. If this process takes 0.5s and you are moving at 30km/h, how far will you travel in that time? 
8th grade
I am having trouble with these kinds of problems and I ask my teacher but he doesnt explain it good enough. Will you please tell me step by step instructions to solve this type of problem... 2(z + 11)=6 thank you 
programming
I really need help in this it makes me confuse.I should make a program to find a pattern...so can somebody help me... Write a function to recognize an pattern within another array. Your function should have the following prototype. … 
algebra
The area of the wall you are going to paint is 50 feet2. If the width is half the height, what are the dimensions of the wall? 
chemistry
This question I really don't get it. I tried tried tried to figure out how to start solve the problem but still couldn't figure out. So can you help me with one question PLEASE? 
Algebra 1
How do you write the equation of a line if you have two points? 
Chemistry
Consider the following problem: Target: 2NOCl(g) ? 
ONE math question! Check please, thank you!
6) 108 is 36% of what number? Write and solve a proportion to solve the problem. Step 1. First, I will write the proportion to find the missing value, which I will replace it with n. 108/n = 36/100 Step 2. Next, I will write the cross 
Math
I need help solving the problem not the answer. (Multiple Choice) The steps below show the incomplete solution to find the value of x for the equation 7x + 8 − 3x = −6 + 10: Step 1: 7x + 8 − 3x = −6 + 10 Step 2: 7x + 8 − … 
calculus
h(t)=cot t a.) [pi/4,3pi/4] b.) [pi/6,pi/2] Find the average rate of change of the function over the give n interval and intervals. Please show step by step instructions. Thanks