예제 #1
0
    elif input == 2:
        type = str(raw_input("Enter package type - "))
        facilities = str(raw_input("Enter facilities - "))
        cost = int(raw_input("Enter package cost - "))
        package = Package(type, facilities, cost)
        gymManager.addPackage(package)

    elif input == 3:
        print "PackageID\tType\tFacilities\tCost"
        for pkgId in gymManager.packages.keys():
            package = gymManager.packages[pkgId]
            packageId = pkgId
            type = package.getType()
            facilities = package.getFacilities()
            cost = package.getCost()
            print str(packageId) + "\t" + type + "\t" + facilities + "\t" + str(cost)

    elif input == 4:
        print "CustomerID\tName\tPhone\tJoining Date"
        for cusId in gymManager.customers.keys():
            customer = gymManager.customers[cusId]
            customerId = cusId
            name = customer.getName()
            phoneNo = customer.getPhoneNo()
            joinDate = customer.getJoiningDate()
            print str(customerId) + "\t" + name + "\t" + phoneNo + "\t" + joinDate

    elif input == 5:
        name = str(raw_input("Enter customer name - "))
        customerId = -1