project help
Posted: Wed Nov 02, 2005 11:41 am
I am in my final semester of community college. I have to take a q-basic programming class and I am struggling very badly. I have approached the professor and he is so intelligent but he just can't seem to put it into language that I understand. Our project is to write a program that prints a first name - last name output regardless of the format it was inputted in. Ex: Input John Smith prints John Smith Input Smith, John prints John Smith. I wrote a synapsis of the problem as follows: Seperate a given string into substrings and print the first and last substring names in seperate columns. Now I am floundering. First, Is Mid$ the best function to use to seperate the substrings? Second How do I make it recognize the space or the comma as the seperators between strings? and Last How do I tell the program how to chose which substring to print first? I have read our book (Q-Basic using modular structure) and it is not very helpful. The teacher does not use it at all because he says it is worthless and I have tried google searches. I'm not asking for you to do the work, just to point me in the right direction. Thanks!! Deb