Pure Programmer
Blue Matrix


Cluster Map

Project: Retirement Calculator

Write a program that determines if someone is eligible for retirement. It should accept two command line arguments. The first is the person's age. The second is the number of years of service with the company. A person is eligible for retirement if they are 67 or older or if they are 55 years or older with 25 or more years of service with the company.

Output
$ node RetirementCalculator.js 55 15 You can't retire yet! $ node RetirementCalculator.js 67 15 You may retire! $ node RetirementCalculator.js 56 25 You may retire! $ node RetirementCalculator.js 60 30 You may retire!

Solution