logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Dennison BertonBusiness
(5/5)

868 Answers

Hire Me
expert
Tutor For YouEconomics
(5/5)

923 Answers

Hire Me
expert
B. BavadhariniMarketing
(/5)

875 Answers

Hire Me
expert
TIMFinance
(/5)

583 Answers

Hire Me
Others

Assignment Task:You are required to solve and write Python code for the task below; and prod

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment Task:

You are required to solve and write Python code for the task below; and produce a written report to describe and analyse the problem you are solving, explain your solution to the problem, and detail how you have tested and evaluated your solution.

You must use Python version 3 for this assignment; submissions using any other programming language or Python version will not be marked and could result in a mark of zero for this assignment.

Task (Holiday Packages Database):

  • Write a Python script to create and manage a very basic holiday packages database for a fictional travel agent.

  • The holiday packages database should be stored in a simple Python list, where each item in the list is one holiday package. Additionally, each individual holiday package should be stored in a Python tuple.

    Aholidaypackageshouldconsistof:  A unique ID number

     The holiday destination city
     The destination country
     The number of people catered for
     The number of nights
     Price per person per night
     Seasonal discount (should be considered as available or not available)

  • Write some code that allows the user to enter the details for a new holiday package tuple; remember to consider the data type for each item in the holiday package tuple. This code should also add the new holiday package record (Python tuple) to the holiday packages database (Python list).

  • Write some code that will display, in a suitable format, the database inventory – an output of all the holiday destination cities and countries currently stored in the database.

page1image978563744page1image978564000

1

  • Now write some code to add a repeating menu system to your program and therefore allow the user to select options to add further holiday packages and re-display the database inventory. The menu at this stage should look similar to the following:

               Holiday Packages Database
               +-+-+-+-+-+-+-+-+-+-+-+-+
    
    1.            a.    Enter a new holiday package
      
    2.            b.    Display inventory (all destinations)
      
               c.   Quit
               Choose an option (a to c)
    
  • Add an option to your program to allow the user to search the database for individual holiday destination city or destination country and display, in a suitable format, the full details of any matching records.

  • Add an option to your program to allow the user to delete an entry from the database (i.e. remove a holiday package).

  • Add two more options to the main menu to allow the user to view a filtered list of all holiday packages with a seasonal discount and a filtered list of all holiday packages without a seasonal discount.

  • Finally add some code to display on the main menu how many holiday packages are currently stored in the database.

  • When you are finished you should have a program with a repeating menu system which looks similar to the following:

               Holiday Packages Database
               (Packages loaded: n)
               +-+-+-+-+-+-+-+-+-+-+-+-+
    
    1.            a.    Enter a new holiday package
      
    2.            b.    Display inventory (all destinations)
      
    3.            c.    Search for a package (view details)
      
    4.            d.    Delete a holiday package
      
    5.            e.    Show all holiday packages with seasonal discount
      
    6.            f.    Show all holiday packages with no discount
      
               q.   Quit
               Choose an option (a to f) or q to Quit
    

    All options should return to this menu when completed (apart from the last one).

    Advanced Tasks:

• Add two further options to the main menu of the program to allow the user to:
Viewalistofallholidaydestinationssortedalphabetically(A-Z)byeithercityor

country – the user should be given the choice.
Viewalistofallholidaypackageswithatotalcostlessthananenteredvalue(thetotal

cost of each holiday package should be calculated as:

number of people × number of nights × price per person per night

using the data held in the database at the time).

2

Report:

  • Produce a written report in a Microsoft Word document (or similar) to describe your program.

  • The report must contain the following sections:

Introduction–thisshouldcontainsomebackgroundinformation,generallysummarisethe

problem being solved in this task and demonstrate a clear understanding of the problems. SolutionExplanation–thisisthemainbodyofyourreportwhereyoushoulddescribe

your design and solution to the problem/task outlined in the introduction, and explain any key aspects to the program. You can also use this section to explain your design rationale for certain parts of your code (i.e. why have you done something in a certain way).

Testing–explainhowyouhavetestedyourprogram,andifappropriategivesomesample data and output examples from the program. There should be evidence of your program being tested given either in this section or in the appendix and referred to from this section.

Conclusion–usethissectiontoevaluateyourwork(i.e.yoursolutiontotheproblem described in the introduction), for example, what has worked well, what would you like to change next time.

Appendix–youshouldcopyandpasteyourentireprogramcodeintothisfinalsectionof the report.

  • Please note, any code pasted into the report (including the appendix) should use the Courier New (or a similar fixed-width) font to distinguish it from any other text; screenshots must not be used for source code.

  • If you have used any materials beyond the lecture slides and lab notes (e.g. programming textbooks or websites) then these must be cited accordingly using the IEEE referencing style.

  • The word count for the report is ~1600 words ±10% (excluding contents page, code segments, references, and appendix).

    Deliverables:

    • ‘Feedback Matters’ checklist (assignment coversheet)

    • Python script file for the task

    • Report – Microsoft Word document (or similar)

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme