def __init__(self, name: str, capacity: int, memory: int):
     Hardware.__init__(self, name, "Power", int(capacity * 0.25),
                       int(memory + (memory * 0.75)))
예제 #2
0
    def __init__(self, name, capacity, memory):
        Hardware.__init__(self, name, "Heavy", int(capacity*2), int(0.75*memory))

# test = HeavyHardware("HDD", 200, 200)
#
# print(test.name, test.type, test.capacity, test.memory)
예제 #3
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, "Power", int(0.25 * capacity),
                       int(1.75 * memory))
 def __init__(self, name: str, capacity: int, memory: int):
     Hardware.__init__(self, name, "Heavy", capacity * 2,
                       int(memory * 0.75))
 def __init__(self, name: str, capacity, memory):
     Hardware.__init__(self, name, "Power", capacity * 0.25, memory * 1.75)
예제 #6
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, 'Heavy', capacity * 2, memory * 0.75)
예제 #7
0
 def __init__(self, name, capacity, memory):
     Hardware.__init__(self, name, 'Power', capacity * 0.25, memory * 1.75)