Author |
Message |
Crazygirl
|
Posted: Sat Nov 09, 2002 6:23 am Post subject: PLZ HELP |
|
|
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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Mike Pastah
|
Posted: Sat Nov 09, 2002 6:43 am Post subject: (No subject) |
|
|
i dont understand... explain better... what does delmited mean? |
|
|
|
|
|
Crazygirl
|
Posted: 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
|
|
|
|
|
|
Tony
|
Posted: Sat Nov 09, 2002 10:05 pm Post subject: (No subject) |
|
|
well the easiest way I find is separating inputs by a space " "
such as in this program:
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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Crazygirl
|
Posted: Sun Nov 10, 2002 5:50 am Post subject: (No subject) |
|
|
thnx a lot
it helps me
|
|
|
|
|
|
Tony
|
Posted: Sun Nov 10, 2002 6:24 am Post subject: (No subject) |
|
|
no problem, any time
Its very interesting... I know just 3 girls that sord of know basics of programming... I guess there's more out there |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|