Computer Science Canada

PLZ HELP

Author:  Crazygirl [ Sat Nov 09, 2002 6:23 am ]
Post subject:  PLZ HELP

Crying or Very sad Sad Confused

HELP ME
HERE IS THE PROGRAM
I NEED IT URGENTLY FOR TOMORROW IN SCHOOL

INPUT FIRSTNAME ,LASTNAME,MARK DELMITED BY #
SEPERATE INTO VARIABLE AND PRINT

EXAMPLE :-
INPUT :- MICHEAL # MR # 23
OUTPUT :- MR MICHEAL GOT 23



THNK YOU VERY MUCH

Author:  Mike Pastah [ Sat Nov 09, 2002 6:43 am ]
Post subject: 

i dont understand... explain better... what does delmited mean?

Author:  Crazygirl [ Sat Nov 09, 2002 7:37 am ]
Post subject:  hey ..here it is

ok
the program suppose to be
when we input any letters or phrase with this sign "#" and when we run it this sign"#" shouldn't appear



example
input :LiLy # Miss # 25
output : Miss LiLy got 25



if yu dont understand wat i mean by deliminate #
so Plz just help me by getting something related to the example above
do any turing coding

thnx alot Very Happy
Very Happy

Author:  Tony [ Sat Nov 09, 2002 10:05 pm ]
Post subject: 

well the easiest way I find is separating inputs by a space " "

such as in this program:
code:
get a
get b


if you input "tony tiger" then a will be tony and b will be tiger.

I can't see why the heck you'd want to use # sign instead of a space, but if you do.. then you read one character at a time untill you find #.

code:
for i:1 .. length(text)
if text(i) = "#" then
%symbol is found, change the variable
else
firstname = firstname + text(i)
end if
end for


in change the variable part you gotta write some code to replace firstname variable with lastname and then with mark. You'd probly have to set up a counter or two to keep track of variables.

But once again... separation by space is good enough and each separate word will get assigned to separate variable.

Author:  Crazygirl [ Sun Nov 10, 2002 5:50 am ]
Post subject: 

thnx a lot
it helps me
Smile

Author:  Tony [ Sun Nov 10, 2002 6:24 am ]
Post subject: 

no problem, any time Wink

Its very interesting... I know just 3 girls that sord of know basics of programming... I guess there's more out there Very Happy


: