1. ## help

hi guys I started c++ programming the other day (had 2 calsses) and my teacher gave us a task to do and i have no idea how to to it along with 99% of the rest of my class. teh teacher refuses to help in any way so im buggered. this task will probably seem pretty easy to all you guys but for a newbie at C++ like me its rather difficult.

i attatched the file so i hope it works

cheers

2. heres what i did for an ipo drawing but its not complete

and most likely wrong

3. come on someone help the poor guy out (me)

4. nothing hard there. At least show some pseudocode at the very least if you want help with such a simple problem. Diagrams are all well and good but I find code easier to read. What particular bit are you struggling with. checking the input values? finding the trip value? whats the problem?

5. Here's a way to start:

determine variables needed, eg:
age
gender

verify age input
cycle until age in appropriate range

verify gender
cycle until gender appropriate

store input data somewhere until calculations done or collect data regarding various ages and genders on the fly

put all the above in a loop to allow all task to repeat as long a user wants to.

6. ok well hers the code i worked out can anyone see anything wrong with this
Code:
```KEY
id,
age,
gen(gender),
scount(total students above 21)
mcount(male counter)
fcount(female counter)
tcount(total students)

START
Int id, age, gen, scount=0, mcount=0, fcount=0, tcount=0
Int m, M f, F
DOWHILE tcount ˇÜ 9999
DISPLAY ˇ°Enter idˇ±
IF id=1 to 9999
DISPLAY ˇ°Enter ageˇ±
IF age=16 to 25
IF age = >21
DISPLAY ˇ°Enter genˇ±
IF gen = m, M
IF else gen = f, F
ELSE
DISPLAY ˇ°error messageˇ±
ENDIF
ELSE
ENDIF
ELSE
DISPLAY ˇ°error messageˇ±
ENDIF
ELSE
DISPLAY ˇ°error messageˇ±
ENDIF
ENDDO
COMPUTE tcount = mcount + fcount
DISPLAY scount, mcount, fcount, tcount
END```
code tags

7. ummm not sure what happened in that post ti was all set out neatly with tab setup and so on but didint work and also some of my symbols like > and " " turned into wierd symbols so yeah i dunno wahts goin on there

8. LOL, this is the kind of post that I never bother to look at. The topic says "Help" and there is a little gem to the left.

Oh wait, I just did