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 »
Ahah


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
Answered Same DayOct 04, 2021

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

Neha answered on Oct 06 2021
147 Votes
import random
from datetime import datetime
from datetime import date
from datetime import time
#this class is to append the customer data for the event
class Cus
tomer:
totalticketsold = 0
def __init__(self,name,email,code,group,ticket):
self.name = name
self.email = email
self.code = code
self.group = group
self.ticket = ticket
Customer.totalticketsold += self.ticket
#this class is to append the event details in a list
class Event:
def __init__(self,time):
self.time = time
#event function to print the menu for the user either to create a new event or go to the main menu
def event():
event = []
time = datetime(2019,10,9,12,00)
event.append(Event(time))
while True:
print("Select one option")
print("Enter any number to exit the program")
print("1. Add new event")
print("2. Go to the main menu")
choice = int(input())
if choice == 1:
addevent(event) #add new event
elif choice == 2:
menu(event) # main menu
else:
print("Thank You for using this program")
print("Bye.....")
break
#to add new event in the event list
def addevent(event):
currenttime = datetime.now()
year = int(input("Enter year"))
month = int(input("Enter month"))
date = int(input("Enter date"))
while True:
hour = int(input("Enter hour"))
if hour > 24:
print("Enter valid input")
else:
break
while True:
minute = int(input("Enter...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here