Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 PLZ HELP
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Crazygirl




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Mike Pastah




PostPosted: Sat Nov 09, 2002 6:43 am   Post subject: (No subject)

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




PostPosted: 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
Tony




PostPosted: 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:
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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Crazygirl




PostPosted: Sun Nov 10, 2002 5:50 am   Post subject: (No subject)

thnx a lot
it helps me
Smile
Tony




PostPosted: Sun Nov 10, 2002 6:24 am   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: