This application calculates a user's age on different planets based on their solar years. It also calculates life expectancy on Earth and on other planets.
Run the following commands in Terminal:
$ git clone
this repository$ cd galactic-calculator
$ npm install
$ bower install
$ gulp build
$ gulp serve
Spec | Input | Output |
---|---|---|
Convert age into seconds. | 32 years | 1,009,152,000 seconds |
Return the age of a human in Mercury years. | 32 Earth years | 133 Mercury years |
Return the age of a human in Venus years. | 32 Earth years | 52 Venus years |
Return the age of a human in Mars years. | 32 Earth years | 17 Mars years |
Return the age of a human in Jupiter years. | 32 Earth years | 3 Jupiter years |
Determine how many years a user has left to live on Earth. | 32, female nonsmoker who exercises and lives in Africa | 39 years left |
Determine how many years a user has left to live on Mercury. | 32, female nonsmoker who exercises and lives in Africa | 163 years left |
Determine how many years a user has left to live on Venus. | 32, female nonsmoker who exercises and lives in Africa | 63 years left |
Determine how many years a user has left to live on Mars. | 32, female nonsmoker who exercises and lives in Africa | 21 years left |
Determine how many years a user has left to live on Jupiter. | 32, female nonsmoker who exercises and lives in Africa | 3 years left |
There are no known bugs at this time.
In the future, I would like the site to congratulate users who have lived beyond their life expectancy. I'd also like to add conversions for animal years.
If you have issues, questions, ideas, or concerns, please contact Margaret. Feel free to make a contribution to the code.
- JavaScript
- Node
- Bower
- Jasmine
- Karma
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry