Scilab Project
Scilab Project
Scilab Project
TOPIC :
SCILAB TOURISM
SUBMITTED BY:
RISHAL FAISAL RA1511002010886
MD. FAISAL RA1511002010905
AMIT KUMAR RA1511002010846
ABSTRACT
Tourist information system includes general
information about a tourist spot and
involves the promotion of different places
and help the tourist to explore new places
which includes the booking of railway, flight
service, hotel, food and accommodation
which can satisfy the need of the customer.
case 1
amt=5200*np;
case 2
amt=3000*np;
case 3
amt=2000*np;
case 4
amt=800*np;
end
else
printf("Enter a valid option \n")
end
end
else if n1==2
printf("Flight \n")
printf("1. Indigo -\n\t time of departure : 05:25 \t time of
arrival : 08:10 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.6000 \n 2. Spicejet -\n\t time od departure : 07:45 \t time of
arrival : 10:00 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.6500 \n 3. Air India -\n\t time of departure : 20:00 \t time of
arrival : 10:15 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.5000\n")
c3=input("Choose the Flight : ")
select c3
case 1
amt = 6000*np;
case 2
amt = 6500*np;
case 3
amt = 5000*np;
end
else
printf("Enter from the Options provided \n")
end
end
printf("Hotels : \n\t 1. Continental Hotel - \n\t\t 1.Suite Room Rs.5000 \n\t\t 2. Room - Rs.3500 \n\t 2. Taj Krishna - \n\t\t 1. Suite
Room - Rs.6000 \n\t\t 2. Room - Rs.4000 \n\t 3. Oberai Residency \n\t\t 1. Suite Room - Rs.7500 \n\t\t 2. Room - Rs.5000 \n")
amt=amt+(nd*(5000*nr));
else
printf("Invalid Option \n")
end
end
else
printf("Enter a valid option \n")
end
printf("List of places to visit - \n\t-India Gate\n\t-Red Fort\n\tHumayuns Tomb\n\t-Qutub Minar\n\t-Akshardham\n\t-Lotus
Temple\n\t-Parliament House\n\t-Jama Masjid\n")
printf("Return --\n")
printf("Date of Return : %s\n",dor)
printf("Mode of Transport available : \n\t1. Train\n\t2.
Flight\n")
n1=input("Enter the Mode of Tranport : ")
np=input("Enter the number of passengers : ")
if(n1==1)
printf("Railways \n")
printf("1. Grand Trunk -\n\t time of departure : 19:15 \t time of
arrival : 6:30 \n \t journey time : 35hrs 15 mins \n \t Fare - \n \t 1.
1Ac \t Rs.5200 \n \t 2. 2Ac \t Rs.3000 \n \t 3. 3Ac \t Rs.2000 \n \t 4.
SL \t Rs.800 \n 2. South Indian Exp - \n \t time of departure :
22:00 \t time of arrival : 7:05 \n \t journey time : 33hrs 05 mins
\n \t Fare - \n \t 1. 1Ac \t Rs.5500 \n \t 2. 2Ac \t Rs.3400 \n \t 3. 3Ac
\t Rs.2100 \n \t 4. SL \t Rs.700 \n")
c1=input("Choose the Train : ")
if (c1==1)
printf("Train name - Grand Trunk \n")
c2=input("choose the coach : ")
select (c2)
case 1
amt=5200*np;
case 2
amt=3000*np;
case 3
amt=2000*np;
case 4
amt=800*np;
end
else if c1==2
printf("Train name - South Indian Ezp \n")
c2=input("choose the coach : ")
select (c2)
case 1
amt=amt+(5500*np);
case 2
amt=amt+(3400*np);
case 3
amt=amt+(2100*np);
case 4
amt=amt+(700*np);
end
else
printf("Enter a valid option \n")
end
end
else if n1==2
printf("Flight \n")
printf("1. Indigo -\n\t time of departure : 20:25 \t time of
arrival : 11:10 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.5000 \n 2. Spicejet -\n\t time od departure : 07:45 \t time of
arrival : 10:00 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.7500 \n 3. Air India -\n\t time of departure : 20:00 \t time of
arrival : 10:15 \n\t journey time : 2hrs 45mins \n \t Fare - \t
Rs.5000\n")
c3=input("Choose the Flight : ")
select c3
case 1
amt =amt+(5000*np);
case 2
amt =amt+(7500*np);
case 3
amt =amt+(5000*np);
end
else
printf("Enter from the Options provided \n")
end
end
case 2
//time for SINGAPORE
printf("\tSINGAPORE\nMode of Transport available Flight\n")
printf("Date of Departure : %s\n",doj)
np=input("Enter the number of passengers : ")
printf("1. Malaysian Airlines-\n\t time of departure : 16:00 \t
time of arrival : 08:45 \n\t journey time : 4hrs 45mins \n \t Fare - \t
Rs.17500 \n 2. Asian Airlines -\n\t time od departure : 21:00 \t
time of arrival : 02:00 \n\t journey time : 5hrs 00mins \n \t Fare - \t
Rs.20000 \n 3. Jet Airways -\n\t time of departure : 16:00 \t time of
arrival : 20:45 \n\t journey time : 4hrs 45mins \n \t Fare - \t
Rs.17000\n")
c3=input("Choose the Flight : ")
select c3
case 1
printf("Malaysian Airlines\n")
amt = amt+(17500*np);
disp(amt))
case 2
printf("Asian Airlines\n")
amt = amt+(20000*np);
case 3
printf("Jet Airways\n")
amt = amt+(17000*np);
else
printf("Enter from the Options provided \n")
end
printf("Hotels : \n\t 1. Marriot - \n\t\t 1.Suite Room - Rs.8000
\n\t\t 2. Room - Rs.6500 \n\t 2. Novotel - \n\t\t 1. Suite Room Rs.7500 \n\t\t 2. Room - Rs.6000 \n\t 3. Carlton Singapore - \n\t\t
1. Suite Room - Rs.8500 \n\t\t 2. Room - Rs.7500 \n")
nd=input("Enetr the number of days of stay (date of return date of departure)")
ch=input("Choose a Hotel : ")
nr=input("Enter the number of rooms required : ")
select ch
case 1
else
printf("Enter a valid option \n")
end
printf("List of places to visit - \n\t-Sentosa\n\t-Night
Safari,Singapore\n\t-Singapore Zoo\n\t-Singapore Flyer\n\tUnderwater World\n\t-Tiger Sky Tower\n\t-Jurong Bird Park\n\tUniversal Studios Singapore\n")
printf("Return --\n")
printf("Date of Return : %s\n",dor)
printf("Mode of Transport available Flight\n")
np=input("Enter the number of passengers : ")
printf("Flight \n")
printf("1. Malaysian Airlines-\n\t time of departure : 21:00 \t
time of arrival : 01:45 \n\t journey time : 4hrs 45mins \n \t Fare - \t
Rs.15000 \n 2. Asian Airlines -\n\t time od departure : 22:00 \t
time of arrival : 03:00 \n\t journey time : 5hrs 00mins \n \t Fare - \t
Rs.17000 \n 3. Jet Airways -\n\t time of departure : 16:00 \t time of
arrival : 20:45 \n\t journey time : 4hrs 45mins \n \t Fare - \t
Rs.18000\n")
c3=input("Choose the Flight : ")
select c3
case 1
printf("Malaysian Airlines\n")
amt =amt+(15000*np);
disp(amt)
case 2
printf("Asian Airlines\n")
amt =amt+(17000*np);
case 3
printf("Jet Airways\n")
amt =amt+(18000*np);
else
printf("Enter from the Options provided \n")
end
case 3
//time for BANGKOK
printf("\t\BANGKOK\nMode of Transport available Flight\n")
printf("Date of Departure : %s\n",doj)
np=input("Enter the number of passengers : ")
amt=amt+(nd*(8500*nr));
else
printf("Invalid Option \n")
end
end
case 2
ch1=input("Enter the room option : ")
printf("Novotel\n")
if(ch1==1)
printf("Suite Room\n")
amt=amt+(nd*(15500*nr));
else if ch1==2
printf("Room\n")
amt=amt+(nd*(10000*nr));
else
printf("Invalid Option \n")
end
end
case 3
ch1=input("Enter the room option : ")
printf("Hotel De Bangkok\n")
if(ch1==1)
printf("Suite Room\n")
amt=amt+(nd*(18500*nr));
else if ch1==2
printf("Room\n")
amt=amt+(nd*(10500*nr));
else
printf("Invalid Option \n")
end
end
else
printf("Enter a valid option \n")
end
printf("List of places to visit - \n\t-Grand Palace\n\tWatarul\n\t-Golden Buddha Temple\n\t-Bangkok National
Museum\n\tSafari World Zoo\n\t-Gaint Swing\n\t-Dusit Palace\n\tDemocracy Monument\n\t-Royal Thai Airforce Museum\n")
printf("Return --\n")
case 2
ch1=input("Enter the room option : ")
printf("Roosevelt Hotel\n")
if(ch1==1)
printf("Suite Room\n")
amt=amt+(nd*(10000*nr));
else if ch1==2
printf("Room\n")
amt=amt+(nd*(6000*nr));
else
printf("Invalid Option \n")
end
end
case 3
ch1=input("Enter the room option : ")
printf("Oberai Hotel\n")
if(ch1==1)
printf("Suite Room\n")
amt=amt+(nd*(7500*nr));
else if ch1==2
printf("Room\n")
amt=amt+(nd*(5000*nr));
else
printf("Invalid Option \n")
end
end
else
printf("Enter a valid option \n")
end
printf("List of places to visit - \n\t-Gateway of India\n\tSidhiVinayak Temple\n\t-Essel World\n\t-Elephanta Caves\n\tKanheri Caves\n\t-Worli Fort\n\t-Wankhede Stadium\n\t-Juhu
Chaupati\n\t-Aksa Beach\n\t-Haji Ali Dargah\n")
printf("Return --\n")
printf("Date of Return : %s\n",dor)
printf("Mode of Transport available : \n\t1. Train\n\t2.
Flight\n")
n1=input("Enter the Mode of Tranport : ")
np=input("Enter the number of passengers : ")
if(n1==1)
printf("Railways \n")
printf("1. CSTM Chennai Express -\n\t time of departure :
14:00 \t time of arrival : 16:30 \n \t journey time : 26hrs 30
mins \n \t Fare - \n \t 1. 1Ac \t Rs.3200 \n \t 2. 2Ac \t Rs.2200 \n \t
3. 3Ac \t Rs.1500 \n \t 4. SL \t Rs.600 \n 2. Chennai Mail - \n \t
time of departure : 23:45 \t time of arrival : 04:25 \n \t journey
time : 28hrs 40 mins \n \t Fare - \n \t 1. 1Ac \t Rs.3500 \n \t 2.
2Ac \t Rs.2900 \n \t 3. 3Ac \t Rs.2100 \n \t 4. SL \t Rs.700 \n")
c1=input("Choose the Train : ")
if (c1==1)
printf("Train name - CSTM Chennai Express \n")
c2=input("choose the coach : ")
select (c2)
case 1
amt=3200*np;
case 2
amt=2200*np;
case 3
amt=1500*np;
case 4
amt=600*np;
end
else if c1==2
printf("Train name - Chennai Mail \n")
c2=input("choose the coach : ")
select (c2)
case 1
amt=amt+(3500*np);
case 2
amt=amt+(2900*np);
case 3
amt=amt+(2100*np);
case 4
amt=amt+(700*np);
end
else
printf("Enter a valid option \n")
end
end
else if n1==2
printf("Flight \n")
printf("1. Indigo -\n\t time of departure : 20:25 \t time of
arrival : 22:10 \n\t journey time : 1hrs 45mins \n \t Fare - \t
Rs.5000 \n 2. Spicejet -\n\t time od departure : 06:45 \t time of
arrival : 08:00 \n\t journey time : 1hrs 45mins \n \t Fare - \t
Rs.6500 \n 3. Air India -\n\t time of departure : 18:00 \t time of
arrival : 19:45 \n\t journey time : 1hrs 45mins \n \t Fare - \t
Rs.5500\n")
c3=input("Choose the Flight : ")
select c3
case 1
amt =amt+(5000*np);
case 2
amt =amt+(6500*np);
case 3
amt =amt+(5500*np);
end
else
printf("Enter from the Options provided \n")
end
end
else
printf("Please choose from the options given above \n")
end
printf("Billing- \n\n")
printf("_________________________SCILAB
TOURISM_________________________\n")
printf("Name : %s\nEmail Id: %s\nContact no. : %s\nDate Of
Departure : %s\t Date Of Return : %s\n",name,email,mob,doj,dor)
if (n==1)
printf("Destination : DELHI \n")
else if n==2
printf("Destination : SINGAPORE \n")
else if n==3
printf("Destination : BANGKOK \n")
else if n==4
printf("Destination : MUMBAI \n")
else
printf("Enter from the given option\n")
end
end
end
end
printf("Billing Amount : %d\n",amt)
printf("Note:-\n1.Please take your ID proof and passports while
travelling\n2.Please take care of your belongings\n")
printf("\t***THANK YOU FOR CHOOSING SCILAB TOURISM***\n")
fd=mopen('bill.txt','w')
if(fd==-1)
printf("file does not exist")
else
mfprintf(fd,"_________________________SCILAB
TOURISM_________________________\n\nName : %s\nEmail Id:
%s\nContact no. : %s\nDate Of Departure : %s\t Date Of Return :
%s\nBilling amount : %d\n\nNote:-\n1.Please take your ID proof
and passports while travelling\n2.Please take care of your
belongings\n\n\t***THANK YOU FOR CHOOSING SCILAB
TOURISM***\n",name,email,mob,doj,dor,amt)
mclose('bill.txt')
//end
SCREENSHOTS