Python

patty121

  

Hi, I need a Python program for the following question I also have a flowchart attached along with this question.

We are going to build a small airline reservation program...you need to write a Python program that does the following:

1. Ask a person where they want to go…give them a choice of at least THREE different locations…each location should be a DIFFERENT PRICE PER PERSON…

2. Ask how many travelers are going on the trip…

3. For EACH TRAVELER, ask for a name and an email address…

4. Tell the person how much they owe…

5. Store the information on a file…

6. Display a report of ALL people who have booked a vacation…include their name, their email address, the price of their individual ticket and the total cost…

You need to include the following:

1. A text file to store and retrieve the information…remember, all information is      cumulative!

2. Create at least THREE functions…

3. Use a LIST or a DICTIONARY…

4. Use at least one LOCAL and one GLOBAL variable…the GLOBAL variable should be used in at least one function…

5. Create Exception Handling for Both Data Entry and File Handling…

  • 8 years ago
  • 5
Answer(1)

Purchase the answer to view it

NOT RATED
  • AirlineReservationSystem.ipynb
  • ars4.png
  • ars1.png
  • ars3.png
  • ars2.png
  • updated_ARS.py
  • 4ars.png
  • 5ars.png
  • 1ars.png
  • 2ars.png
  • 3ars.png