Student ID ending with odd number Program 1 Student ID ending with even number Program 2 Program 1 The program you will be developing will be used by event organizer’s staff who are promoting social...

1 answer below »
please see the attached files. thank you.


Student ID ending with odd number Program 1 Student ID ending with even number Program 2 Program 1 The program you will be developing will be used by event organizer’s staff who are promoting social gatherings. e.g. LAN Parties, Board Game Nights The event organizer has a range of events. Customer can book a seat at an event, and if circumstances change they can remove their reservation at a later time, but not when it is less than 1 day before the event. The event organisers want you to make a program that can be used by their staff to store seat reservation information. Following features need to be implemented in the program: Basic Tasks 1. Create customer details - Name, Email, Reference Code (5 digit reference code that does not start with zeros (e.g. 10000 is the smallest acceptable value), Adult or Child 2. Reserve seat at an event – restriction is that customer can book only one seat for given event, they may however book seats at a different event 3. Once all seats at an event are booked, user should get a warning message - sorry, event is sold out 4. Customers can cancel their reservation, condition is, it must not be allowed less than 24 hours before an event 5. Show summary information about an event – number of seats booked, number of seats available 6. Information about customers and event bookings must persist Advance Tasks 1. Allow user to create a new event 2. Full validation of all input 3. Ask user to choose file name and path to save the file (Assumption is that the directory/folder already exists) 4. Report on a customer’s reservation Program 2 Your program will be used by the staff who work for an airline company, e.g. Qantas Airways. The airline has a range of flights between various cities each day. Customers can book to fly on a flight, and if circumstances change they can cancel their booking at a later time, but not when it is less than 2 hours until the flight. The client want you to make a program that can be used to store the booking information, and the check-in information of the people on a flight. The program should allow staff to: 1. Create customer details – Name, Address, 3 digit passenger code that does not start with zeros (e.g. 100 is the smallest acceptable value), whether the customer can only eat halal meat (e.g. Muslim passengers) 2. Customers should be able to book seats on a flight, only one seat on a flight per customer. They may however book a seat on a different flight. 3. Cancel a booking – only permitted 2 hours before the flight 4. Summary Information a. The source and destination places. b. The number of seats that are booked. c. The number of seats that are available. d. The number of passengers booked on the flight that need a halal meal. 5. Customer and flight information must persist Advanced Tasks 1. Create a new flight 2. Full validation of all input 3. Ask user to choose file name and path to save the file (Assumption is that the directory/folder already exists) 4. Report on a customer’s booking Unit ISY1003 Foundations of Programming Assessment Type Practical Assessment Number 2 Assessment Weighting Programming Assessment 30% Alignment with Unit and Course Unit Learning Outcome Graduate Attributes Assessed ULO 3: Describe and discuss the elements of effective programming style ULO 4: Demonstrate an understanding of the software development life cycle and apply sound programming analysis techniques (design, coding, debugging, testing and documentation) to justify simple programming problems GA 1: Communication GA 2: Collaboration GA 4: Critical Thinking Due Date/Time Week 10 31 May 2019 via Moodle Turnitin 5:00pm (AEST) Assessment Description In this project, you will work individually to write programs which demonstrate your understanding of IPO and usage of simple functions in Python programs. Content and Structure: You will have to write a modular program to: 1. Perform a series of transactions 2. This will be a project which students will choose and discuss with the lecturer prior to commencing. 3. Examples could be a scientific calculator, expense management system, online shopping system, banking system etc Program expectation:  The student must be able to explain the working of the program and its logic.  Program should be indented, proper comments should be given, modification history should be present, variable names and data types should be chosen appropriately.  The program should compile and execute to display the result.  The student must use programming constructs available in Python and follow coding standards. Detailed Submission Requirements  Multiple program files may be uploaded.  Student will also need to demonstrate the working of the program along with a full explanation of the underlying code.  Follow coding standards, naming conventions for variables and functions.  Students will be asked to explain the working of their program and the logic they’ve used.  Coding should be modular and program should use all the programming constructs learnt in the course. Misconduct  The assessment will be submitted through Turnitin via your unit page on Moodle.  Turnitin is plagiarism software, which will identify if you have copied information and included it in your assessment.  Copying information from others (i.e. websites, partner company information, or other students etc.) without the acknowledging the author is classified as misconduct.  Engaging someone else to write any part of your assessment for you outside of the group work arrangement is classified as misconduct.  To avoid being charged with Misconduct, students need to submit their own work and be able to explain the program logic and its working.  The AIH misconduct policy and procedure can be read on the AIH website (https://aih.nsw.edu.au/about-us/policies-procedures/). Late Submission  Any assessment submitted past the specific due date and time will be classified as Late.  Any Late submission will be subject to a reduction of the mark allocated for the assessment item by 5% per day (or part thereof) of the total marks available for the assessment item. A ‘day’ for this purpose is defined as any day of the week including weekends. Assignments submitted later than one (1) week after the due date will not be accepted, unless special consideration is approved as per the formal process. Special consideration  Students whose ability to submit or attend an assessment item is affected by sickness, misadventure or other circumstances beyond their control, may be eligible for special consideration. No consideration is given when the condition or event is unrelated to the student's performance in a component of the assessment, or when it is considered not to be serious.  Students applying for special consideration must submit the form within 3 days of the due date of the assessment item or exam.  The form can be obtained from the AIH website (https://aih.nsw.edu.au/current- students/student-forms/) or on-campus at Reception.  The request form must be submitted to Student Services. Supporting evidence should be attached. For further information please refer to the Student Assessment Policy and associated Procedure available on  (https://aih.nsw.edu.au/about-us/policies-procedures/). https://aih.nsw.edu.au/about-us/policies-procedures/ https://aih.nsw.edu.au/current-students/student-forms/ https://aih.nsw.edu.au/current-students/student-forms/ https://aih.nsw.edu.au/about-us/policies-procedures/ Rubrics Marking Criteria HD D C P F ULO 3: Describe and discuss the elements of effective programming style ULO 4: Demonstrate an understanding of the software development life cycle and apply sound programming analysis techniques (design, coding, debugging, testing and documentation) to justify simple programming problems Program generates output as expected Header section has modification history Naming conventions are followed for variables, functions and other programming units (24 - 30 marks) Program generates output as expected Program follows a modular approach and uses all the programming constructs learnt Functions are used to perform operations (18 -24 marks) Program generates output as expected All coding standards are followed Code is indented (15 – 18 marks) Code compiles Program uses concepts learnt in class to meet the requirements Program implements business logic Program generates correct output (15 marks) Code does not compile Unable to execute code Program does not perform as per functionality and features approved by lecturer (0 – 14)
Answered Same DayMay 28, 2021

Answer To: Student ID ending with odd number Program 1 Student ID ending with even number Program 2 Program 1...

Pritam answered on May 30 2021
143 Votes
Flight-Booking-System.py
customers = {}            # customers[pcode] = [ ,
, ]
flights = {}            # flights[fcode] = [ , , , , , ]
bookingHistory = {}     # bookingHistory
[pcode] = [ , , ... ]
# function that saves customer information to hard disk for persistence
def saveCustomersToDisk(filename):
    global customers
    global bookingHistory
    with open(filename+'.txt','w') as f:
        for pcode in customers:
            f.write( str(pcode) + ',' + customers[pcode][0] + ',' + customers[pcode][1] + ',' + customers[pcode][2] + ',' ) # + '\n' )
            for item in bookingHistory[pcode]:
                f.write("%s," % item)
            f.write("\n")
    f.close()
# function that loads customers information from hard disk for persistence
def loadCustomersFromDisk(filename):
    global customers
    global bookingHistory
    try:
        with open(filename+'.txt','r') as f:
            linesInFile = f.readlines()
            for line in linesInFile:
                newCustomer = line.split(',')[:-1]
                pcode = int(newCustomer[0])
                customers[pcode] = newCustomer[1:4]
                bookingHistory[pcode] = newCustomer[4:]
        f.close()
    except IOError:
        print("File does not exist!")
    
    
# function that saves flight information to hard disk for persistence
def saveFlightsToDisk(filename):
    global flights
    with open(filename+'.txt','w') as f:
        for fcode in flights:
            f.write( str(fcode) + ',' + flights[fcode][0] + ',' + flights[fcode][1] + ',' + flights[fcode][2] + ',' + str(flights[fcode][3]) + ',' + str(flights[fcode][4]) + ',' + str(flights[fcode][5]) + '\n' )
    f.close()
# function that loads flight information from hard disk for persistence
def loadFlightsFromDisk(filename):
    global flights
    try:
        with open(filename+'.txt','r') as f:
            linesInFile = f.readlines()
            for line in linesInFile:
                newFlight = line.split(',')
                fcode = int(newFlight[0])
                flights[fcode] = newFlight[1:]
                flights[fcode][3] = int(flights[fcode][3])
                flights[fcode][4] = int(flights[fcode][4])
                flights[fcode][5] = int(flights[fcode][5])
        f.close()
    except IOError:
        print("File does not exist!")
# function that displays options menu
def displayMenu():
print("\n\n***** OPTIONS MENU *****")
print("1> Add a new customer")
print("2> Make a booking")
print("3> Cancel a booking")
print("4> View booking history of a customer")
print("5> Create a new flight")
print("6> View summary information for flights")
print("7> Exit")
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here