Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

A visual logic question

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
So i'm new to your site and I was looking around and every time some one asked for help with there homework you guys shoot them down and say you will not do there homework for them. Well I have a homework type quest not so much do it for me but could you explain how I do a step in my home work.

The work was to write a code that uses arrays. I take a persons name then how much they sold. Have that put into an array then added up and give the average. That much I understand and was very easy. I am having trouble on where I put in the condition so ask did person A sell >= to the average if so print his name and do that for every person in the array.

So my question is how do you get a question to loop into an array and ask it for each one.

Do I put it in the indein or indexout for loop or some where else.

:) please some one give me a little bit of help more then surf the web or ask my teacher. its extra credit and I really need it lol
  • 0





  • Member
  • PipPip
  • 46 posts
Basically use a "For Each" loop, look it up for your specific language. (Yes I know I told you to look it up, but it is more help than just "Look it up on Google" :))
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP