Example #1
0
cal.add(2, 2)
cal2.add(10000, 10000)

advCal = AdvancedCalculator()

advCal.pow(2, 10)
advCal.root(2, 2)
advCal.printOperations()

print("-------- CIRCLE --------")
c = Circle(1, 2, "red", 4)
c.printShape()

area = c.area()
print("Area = " + str(area))
circuit = c.circuit()
print("Circuit = " + str(circuit))

print("-------- HourlyEmployee --------")

he = HourlyEmployee(123, "Alicja", "Baszak", 10)
he.printInfo()

he.getSalary()

payment = he.computePayment(8)
print("payment: {}".format(payment))

print("-------- SalariedEmployee --------")

se = SalariedEmployee(123, "Alicja", "Baszak", 10)