'How to add option for booking? In booking there should be option to **input, delete , add**. Every booking should have client name, num of booking

So, option booking should have options for input, add,delete, Every booking should have: client username, arrangement, num of booking places and is it payed or not.

# options for torustic agency application
options = input('Destinations,\n Arrangements,\n Booking,Search,\n Statistic,\n Enter option:  ')
print()
# available destinations
destinations =['Brazil','Cuba','Mexico']

# every destination has information about itself
Brazil = ['Brasilia','South America']
Cuba = ['Havana','South America']
Mexico = ['Mexico City, South America']

# empty list for appending and deleting destinations
arr= []

# infinite loop
while True:
    if options == 'Destinations':
        x = input('Select: ')
        if x == 'show_all': # show all destination
            print(destinations)
        elif x == 'del': # delete destination
            y = input('Enter what to remove: ')
            destinations.remove(y)
        elif x == 'add': # add destination
            z = input('What country to add: ')
            destinations.append(z)
        if x == 'Brazil': # show destinations info
            print(Brazil)
        elif x == 'Cuba':
            print(Cuba)
        elif x == 'Mexico':
            print(Mexico)
    
    if options == 'Arrangements':
        

        x = input("Select arrangement : ")
        if x == 'Brazil': # shows arrangement for Brazil 
            print('destination: Brasilia,\nprice: 1000$\nfrom 2022:05:12 to 2022:05:25   ') 
            print()
        elif x == 'Mexico':
            print('destination: Mexico City,\nprice: 1000$\nfrom 2022:05:12 to 2022:05:25   ')
            print()
        elif x == 'Cuba':
            print('destination: Havana,\nprice: 1000$\nfrom 2022:05:12 to 2022:05:25   ')
            print()
        elif x == 'add': # add arrangement in an empty list
            x = input('select arrrangement: ')
            arr.append(x)
            print(arr) 
        elif  x =='del': # delete arragnement
            x = input('Delete : ')
            arr.remove(x)
            print(arr)

    

Also program should have options for search and statistics. Search activates menu with bookings. for Search input needs user name of client and booking date from start to end.

For Statistics shows total data of system , all arrangements, all destinations, all num of bookings , number of not used arrangements, sum of payed arrangements, total depth of not payed arrangements.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source