Professional Documents
Culture Documents
KINGDOM OF BAHRAIN
INFORMATIC
S PRACTICES
PROJECT
RELATION BETWEEN
PYTHON AND CSV
Certificate of Completion
School Seal:
ACKNOWLEDGMENT
I would like to express my special thanks of gratitude to my teacher
Mrs Ruby Paul who gave me the golden opportunity to do this
wonderful Informatics Practices project on the topic ‘Relationship
between Python and CSV(Comma Separated Values)’ in which I
choose to do ‘How to prepare an Inflight meal receipt for low cost
flights’ ,which also helped me in doing a lot of Research based on
inflight meals and other aviation factors and I came to know about so
many new things. I am really thankful to her or teaching me a lot of
test programs which helped me to do the project.
Index
1. Introduction to Python
3. About Project
6. Source Code
7. Output Screens
8. Bibliography
1. Introduction to Python
Python is an easy-to-learn yet powerful object oriented programming language. It is a very
high level programming language yet as powerful as many other middle-level not so high
level languages like C, C++, Java etc.
Python in other words is an interpreted as well as an expressive language. It is well known
for its completeness and also for being a cross-platform language. It is a free and open source
and can be used for:
Scripting
Web Applications
Game Development
System Administration
Rapid Prototyping
GUI Programs
Database Applications
But, Python is not the fastest language and has less libraries than C, Java, Perl. It is not strong
on Type-binding and not easily convertible .
3. About Project
The project discussed here is about how to prepare an inflight meal receipt for all the low
cost flights like IndiGo, SpiceJet, Air Arabia, Go Air and many others.
A receipt is a written acknowledgment that something of value has been
transferred from one party to another. In addition to the receipts consumers
typically receive from vendors and service providers, receipts are also issued
in business-to-business dealings as well as stock market transactions. For
example, the holder of a futures contract is generally given a delivery
instrument, which acts as a receipt in that it can be exchanged for the
underlying asset when the futures contract expires.
In addition to showing ownership, receipts are important for other reasons. For instance,
many retailers insist that a customer must show a receipt to exchange or return items while
others demand that a receipt—generally issued within a certain timeframe—be produced for
product warranty purposes. Receipts can also be important for taxes because the IRS requires
documentation of certain expenses. The Internal Revenue Service (IRS) suggests that the
following types of receipts if generated, be retained by small businesses:
Gross receipts such as cash register tapes, deposit information (cash and credit sales),
receipt books, invoices, forms 1099-MISC
Receipts from purchases and raw materials (These should show the amount paid and
confirm that they were necessary business purchases; documents could include
canceled checks or other documents that identify the payee, amount, and proof of
payment/electronic fund transfers.)
Cash register tape receipts
Credit card receipts and statements
Invoices
Petty cash slips for small cash payments
You can pre-book your on-board meal 24 hours prior to the departure of your flight.
We offer a varied range of mouth-watering delicacies to satisfy your hunger pangs. You can
book your meals from our ‘Express Café’ option under ‘Express Extras’ by simply selecting
it from our web menu during the booking process or anytime later by using the ‘Manage my
Booking’ option on www.airindiaexpress.in and purchase the same. The Selected Meal is in
lieu of the Complimentary Meal. The special meals have been priced after discounting the
cost of the Complimentary Meal.
Note: Meals will be served along with Bottled Water & Tea/Coffee.
*Currently this is offered in most of the flights in India, select flights from Dubai, Muscat,
Doha, Ras Al Khaimah, Al Ain, Kuwait, Bahrain, Damam and Riyadh.
LOW COST CARRIER IMAGES:-
4. Hierarchical Diagram of the Project
Import
random.ran
Input
dint
datetime,
read_csv
date
5. Hardware and Software requirement
Hardware:-
Laptop
Wireless Mouse
Software:-
Google
Python 3.7.4(For testing programs only)
Python(Anaconda Version – Jupyter Notebook)
Microsoft Tools(2013) – Word and Excel
Snipping Tool
Paint3D
6. Source Code
Procedure for how to write the code:-
1. Perform the import function. Create a dataframe containing all the letters for the
seatnumber. Name the column as ‘FlightSEATS’ with indices as [‘’, ‘N/A’, ‘N/A’ ………..]
2. Create a form named fdata using input() which includes welcome note as per the airline
you have chosen to travel with, the display of meals(by creating a CSV table where it
includes meals, category and prices of your choice), meal chosen by the passenger, the
category of meal, name of the passenger, class of the passenger, origin and destination.
3. Collect the remaining details left out. These would be included in the food receipt of the
passenger. The sequence and the e-tkt number is to be provided by the company only.
4. Prepare the food receipt of the passenger as given below.
7. Output Screens
1. Form needs to be filled up first:-
(a)
(b)
(c)
(d)
(e)
(f)
(g)
2) Food receipt is prepared after entering the details of the passenger.
3) Using Snipping tool press “Edit with Paint 3D” for decoration purpose.
4) Finally, the receipt is now ready.
8. Bibliography:-
Wikipedia
https://www.airindiaexpress.in/en/faqs/faqs
GALLERY(SAMPLES OF INFLIGHT MEAL RECEIPTS)