ok..im sending the code..
NOTE:
1: This is as far as ive got, theres more to do
2: The cities in the program are from India, as am I, so ignore the names for now
menu:
CLS
PRINT "1:Book a Ticket"
PRINT "2:Cancel a Ticket"
PRINT "3:Change Date Of Departure"
PRINT "4:End"
INPUT "Your Option"; P
ON P GOSUB book, cancel, date, endprog
listofcities:
PRINT "1:Ahmedabad"
PRINT "2:Bangalore"
PRINT "3:Chennai"
PRINT "4:Cochin"
PRINT "5:Coimbatore"
PRINT "6
elhi"
PRINT "7:Goa"
PRINT "8:Kolkata"
PRINT "9:Mangalore"
PRINT "10:Mumbai"
RETURN
book:
CLS
PRINT "Welcome."
PRINT "To Book Your Ticket, Kindly Fill In The Data"
PRINT "Press A Key To Continue"; R
CLS
from:
GOSUB listofcities
INPUT "Choose The City Your Going From"; F$
IF F$ = 1 THEN LET F$ = AMD
IF F$ = 2 THEN LET F$ = BAN
IF F$ = 3 THEN LET F$ = CHE
IF F$ = 4 THEN LET F$ = COC
IF F$ = 5 THEN LET F$ = COI
IF F$ = 6 THEN LET F$ = DEL
IF F$ = 7 THEN LET F$ = GOA
IF F$ = 8 THEN LET F$ = KOL
IF F$ = 9 THEN LET F$ = MAN
IF F$ = 10 THEN LET F$ = MUM
destination:
GOSUB listofcities
INPUT "Choose Your Destination"; D$
IF D$ = 1 THEN LET D$ = AMD
IF D$ = 2 THEN LET D$ = BAN
IF D$ = 3 THEN LET D$ = CHE
IF D$ = 4 THEN LET D$ = COC
IF D$ = 5 THEN LET D$ = COI
IF D$ = 6 THEN LET D$ = DEL
IF D$ = 7 THEN LET D$ = GOA
IF D$ = 8 THEN LET D$ = KOL
IF D$ = 9 THEN LET D$ = MAN
IF D$ = 10 THEN LET D$ = MUM
same:
IF F$ = D$ THEN GOTO from
class:
CLS
PRINT "Please fill in the following Details in order to make your flight more enjoyable"
INPUT "Please Press A Key To Continue"; U
CLS
PRINT "1:Economy Class"
PRINT "2:Business Class"
INPUT "Please Choose Your Option"; c$
IF c$ = 1 THEN LET c$ = eco
IF c$ = 2 THEN LET c$ = bus
date:
CLS
INPUT "Please select the day of departure [Eg: 06]"; DD
INPUT "Please select the month of departure [Eg: 09"; MM
INPUT "Please select the year of departure [Eg:2003]"; YYYY
==============================================
Ok..Now the first problem is : Will this work ?
Second: I have included 10 cities and with 9 destinations per city,it turns out to be 90 possible combinations [maybe more, my math is bad]...
so now my problem is as follows: HOW DO I PRINT ALL THE VALUES OF ALL THE NINETY COMBOS
I could assign values manually one by one, but it would be a waste of time..THERE HAS GOT TO BE AN EASIER WAY!
Since its already 9 PM out here, im gonna stay awake all night (as it is daytime for ya'll) and write the whole code...but i will need help now and then...will you help??
If yes and, considering you have MSN, add me y0urp0p@hotmail.com..
ill be online most probably...or we can go on like this, but i think MSN would be much faster..
I would really appreciate it if you would help me!
Thanks!