
-----------------------------------
Crazygirl
Sat Nov 09, 2002 6:23 am

PLZ HELP
-----------------------------------
:cry:  :(  :? 

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

-----------------------------------
Mike Pastah
Sat Nov 09, 2002 6:43 am


-----------------------------------
i dont understand... explain better... what does delmited mean?

-----------------------------------
Crazygirl
Sat Nov 09, 2002 7:37 am

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  :D 
 :D

-----------------------------------
Tony
Sat Nov 09, 2002 10:05 pm


-----------------------------------
well the easiest way I find is separating inputs by a space " "

such as in this program:
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 #.

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.

-----------------------------------
Crazygirl
Sun Nov 10, 2002 5:50 am


-----------------------------------
thnx a lot 
it helps me
 :)

-----------------------------------
Tony
Sun Nov 10, 2002 6:24 am


-----------------------------------
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  :D
