Answered Same DayFeb 11, 2021

Answer To:

Neha answered on Feb 12 2021
153 Votes
import random
from datetime import datetime
import os.path
class Customer:
totalticketsold = 0
flighttime = datetime(2019,10,7,12,00)

def __init__(self,name,address,code,group,ticket):
self.name = name
self.address = address
self.code = code
self.group = group
self.ticket = ticket
Customer.totalticketsold += self.ticket
def validateString(s):
letter_flag = False
number_flag = False
for i in s:
if i.isalpha():
letter_flag = True
if i.isdigit():
number_flag = True
return letter_flag and number_flag
def menu():
customer = []
while True:
print(f'Flight time: {Customer.flighttime}')
print("1.Add new customer")
print("2.Cancel reservation")
print("3.Summary of journey")
print("4.Customer and event details")
print("5. Create new flight")
print("Enter any other key to exit")
choice =input("Enter your choice:")
if choice == "1":
addcustomer(customer)
elif choice == "2":
cancelreservation(customer)
elif choice == "3":
summary(customer)
elif choice == "4":
getcustomer(customer)
elif choice == "5":
createflight(customer)
else:
print("Thanks for using our flight services")
print("Have a good day.......")
break
def addcustomer(customer):
if...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here