Python Travel Management System 100 level Assignment

Our class uses spyder as Python development tool, this is very simple assignment for advanced python developers, please use most simple mothed to solve this assignment.

  1. The Python API in travelToolboxAPI.py defining four functions.  The functions readItems() and printItems() are complete, but the files readTransactions() and printTransactions() are only declarations of the interfaces.  (You will complete this file as travelToolbox.py.)
  2. Two text files that provide one test example, items4.csv and transactions4.csv.  (You will want to create similar test files.)
  3. The items file is a sequence of lines, each of which has three comma-separated values:
  4. A unique tour ID (a string).
  5. The name of that tour (a string).

iii.     The starting availability of seats for the tour (an integer).

For example:

12345,Italy,100

If a string value in a CSV file includes a comma, it is enclosed in quotation marks.

  1. The transactions file is a sequence of lines, each of which has two commaseparated values:
  2. A tour ID (a string), for which there is a corresponding item in the items4.csv file.
  3. The number of seats for the transaction with that item (an integer). For example:

12345,10

A positive integer indicates a reservation and a negative integer indicates a cancellation.

You are to complete the class travelItem in travelClass.py (from travelClassAPI.py) and the functions in travelToolbox.py (from travelToolboxAPI.py).

Here are core specifications for the software.

  1. Input.
  2. Your program will read the file items4.csv, which is an example input file, but you will want to make other test files.
  3. Your program will file the file transactions4.csv, which is an example input file, but you will want to make other test files.
  4. Starting Availability.  The availableStart for each tour is provided in items4.csv.
  5. Reservations.  The number of reservations for each tour is computed as the sum of all positive integers for that tour from transactions4.csv.
  6. Cancellations.  The number of cancellations for each tour is computed as the sum of the negative integers for that tour from the file transactions4.csv.
  7. Ending Availability.  The availableEnd for each tour is computed as availableStart minus the number of reservations and cancellations for that tour.
  8. Output.  The output is printed by printItems() and printSummary() in travelToolbox.py.

File #1

Order from us and get better grades. We are the service you have been looking for.