Create a program that calculates a user's age on other planets based on inputted date.
Spec | Input | Expected Output |
---|---|---|
Program will accept a birth date input | "1998, 0, 1" | January 1, 1998 |
Program will calculate age in years based on birth date input | "1998, 0, 1" | "21 years old" |
Program will convert age in Earth years to age in Mercury years (.24 Earth years) | "21 Earth Years" | "87.5 Mercury years" |
Program will convert age in Earth years to age in Venus years (.62 Earth years) | "30 Earth Years" | "48.4 Mercury years" |
Program will convert age in Earth years to age in Mars years (1.88 Earth years) | "16 Earth Years" | "8.5 Mars years" |
Program will convert age in Earth years to age in Jupiter years (11.86 Earth years) | "45 Earth Years" | "3.8 Jupiter years" |
Program will convert age in Earth years to age in Saturn years (29.46 Earth years) | "27 Earth Years" | "0.9 Saturn years" |
Program will convert age in Earth years to age in Uranus years (84.01 Earth years) | "42 Earth Years" | "0.5 Uranus years" |
Program will convert age in Earth years to age in Pluto years (248.59 Earth years) | "42 Earth Years" | "0.17 Pluto years" |
Program will determine remaining life expectancy in Earth years | current age: "56" life expectancy "76" | "20 Earth years" |
Program will determine remaining life expectancy in for each planet | current age: "56" life expectancy "76" | "32 Venus years", "1.7 Jupiter years" |
If a user has already surpassed their life expectancy, program will calculate their years beyond expectancy | current age: "99" life expectancy "76" | "-23 years" |
- Clone Repository from Github.
- Download all packages by typing "npm install" in the terminal.
- Complete project build by typing "npm run build" in the terminal.
- Type "npm test" to run all tests.
- To run the program type "npm run start".
- Javascript
- Node Package Manager (NPM)
- JSON
- Webpack
- ESLINT
- Jasmine and Karma (testing)
- Babel
- Terminal
- VS Code
- GitHub
This software is licensed under the MIT license.
Copyright (c) 2018 ** _Kenny Wolfenberger **