We can't tell you what's wrong with your logic if you don't post the pseudocode you have. Don't expect us to give you the solution.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Pseudo code is just a step by step description of how to perform a computation, along with appropriate explanations of what each step does to fulfill the requirements. There is no magic here, just work so get started!
rubberman
Posting Virtuoso
1,564 posts since Mar 2010
Reputation Points: 277
Solved Threads: 179
If you need an example of pseudo-code lets take the example of how to find the largest element in an array
pick the first element as the current largest
for each element in the array
if this element is bigger than the current largest
save this element as the current largest
end if
next
And to be picky, I probably should not have included the "end if" and "next" statements because those are actual keywords and not pseudo-code. But you get the drift.
Reverend Jim
Posting Shark
1,167 posts since Aug 2010
Reputation Points: 253
Solved Threads: 159