#!/usr/bin/env python3; ############################################################################### # This program determines if someone is eligible for retirement. # # Argument 1: the person's age # Argument 2: the number of years of service with the company # # Output: Whether the person can retire. # # Copyright © 2017 Richard Lesh. All rights reserved. ############################################################################### import Utils import sys # Begin Main if (len(sys.argv) < 2) : print("Syntax: " + sys.argv[0] + " age years_of_service") sys.exit(1) age = Utils.stoiWithDefault(sys.argv[1], 0) service = Utils.stoiWithDefault(sys.argv[2], 0) if (age >= 67 or (age >= 55 and service >= 25)) : print("You may retire!") else : print("You can't retire yet!")