Esempio n. 1
0
def main():
    generic = furniture.OfficeFurniture("nondescript", "furniture product",
                                        "material", "an amount of", "some",
                                        "a non-zero serving of", 1.11)

    desk_item = desk.Desk("beautiful", "desk", "wood", "thirty", "one hundred",
                          "fifty", 15.00, "left", "three")
    print(generic)
    print(desk_item)
def main():

    # using new variable pulling from the passed arguments
    chair = officefurniture.OfficeFurniture('Chair', 'Steel', 2, 2, 50)
    desk2 = desk.Desk('Desk', 'Wood', 62, 34, 650, 'Left', 5)

    # print the values passed through the classes to display the class' string
    print(desk2)
    print(chair)
Esempio n. 3
0
def main():
    chair = office_furniture.OfficeFurniture('Chair', 'Maple', '24 inches',
                                             '24 inches', '32 inches',
                                             '$299.00')

    print(chair)

    my_desk = desk.Desk('Desk', 'Oak', '32 Inches', '64 inches', '24 inches',
                        '$599.00', 'left', '3 drawers')

    print(my_desk)
Esempio n. 4
0
def main():
    # initialize using the Desk class from the desk module
    product_info = desk.Desk("Desk", "Balsa", "7ft", "3ft", "3ft", 699.99, "Right", 2)

    # Prints the information
    print(product_info)
Esempio n. 5
0
def input_desk():
    full = int(input("Введите количество заполненных клеток: "))
    _desk = desk.Desk(81 - full)

    return _desk