Qbasicnews.com

Full Version: Help Me And I Will Become Your Slave
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Ok, call it cheating but i really need help for the project..
first of all heres what i have to do (The month of year thing in the Previous Post was just an Example but it did help):

1: I have to Create a menu driven program to:
a:Create An Air Ticket
bBig Grinelete An Air Ticket [Stored in Memory]
c:Change the Date Of the Ticket
2: Flowchart the whole Program Sad Sad Sad

Worst of all, i have to do all of this over this weekend!!!!!!
Now, if i can have someone SERIOUSLY...and i mean SERIOUSLY help me out...maybe through some IRC Channel or whatever...i would really appreciate it!!!


Trust me, i DESPERATELY NEED TO DO THIS!!!!!]
prove that you did some of it. nobodie's going to DO YOUR assignment
Lol..Ok..
[Note: This is only portion of the program]

10 CLS
20 PRINT "1:Book A Ticket"
30 PRINT "2:Cancel A Ticket"
40 PRINT "3:Change Date"
50 PRINT "4:Exit"
60 INPUT "Your Option?"; O
70 IF O = 1 THEN GOSUB 1000
80 IF O = 2 THEN GOSUB 2000
90 IF 0 = 3 THEN GOSUB 3000
100 IF 0 = 4 THEN GOSUB 4000



NOW can i get help ?
Question. Are you using QB45.exe or the original BASIC??????
QB 1.1
i know lines arent required but i still do it [habit]
Post all your code.
What data, specifically, does each ticket have?

Also, how do you calculate prices? Is there some list of cities/destinations you're not telling us about??
ok..i posted all the details of the assignment in the "Projects" Forum
Please Check that and see if you can help me!
That's not enough information to get a price... and what other "details" of people is necessary?
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 "6Big Grinelhi"
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!
Pages: 1 2 3