Planetary Age Calculator will return various attributes of a person's age relative to other planets, etc
- Clone the repo
- Make a new branch
- Commit and push your changes
- Create a PR
- JavaScript
- jQuery 3.3.1
- Node.js
- Bootstrap 4.1.3
- Take a person’s age in years and convert it into seconds.
- Take two dates and determine the difference, in seconds, between the two. (This way a user can enter a birthdate and the application can compare the birthdate against the current time to come up with an accurate age.)
- Return the age of a human in Mercury years. (A Mercury year is .24 Earth years.)
- Return the age of a human in Venus years. (A Venus year is .62 Earth years.)
- Return the age of a human in Mars years. (A Mars year is 1.88 Earth years.)
- Return the age of a human in Jupiter years. (A Jupiter year is 11.86 Earth years.)
- Determine how many years a user has left to live on each planet… (yikes!) To do this, the application will have to calculate the user’s life expectancy. You can determine average life expectancy as you see fit. A simple way to do this would be to have the user input the average life expectancy for their demographic. A more involved way to do this would be to collect other information from the user (e.g. lifestyle, country of residence, activity level, etc.) to determine their life expectancy.
- If a user has already surpassed the average life expectancy, return the number of years they have lived past the life expectancy.
- Return the age Keith Richards will be in dog years on the planet Jupiter in 2073.
- Assuming that the average lifespan of a mayfly is 5 minutes, determine how many mayfly lifespans a human user has lived and then compare it the current age (in Earth years) of our sun.
- Configuration/dependencies
- ALL dependencies.
- Specs
- Spec : allows user to input date of birth, input 2018, 8, 3, output 2018, 8, 3.
- Spec : calculates in seconds the time between the moment the birth data was entered and birth date/time , input 2017,8,3 , output 31536001 seconds.
- Spec : using seconds data calculate mercury years, input 2017,8,3 , output 4 mercury year.
- Spec : using seconds data calculate venus years, input 2016,8,3 , output 3 venus year.
- Spec : using seconds data calculate mars years, input 2008,8,3 , output 5 mars year.
- Spec : using seconds data calculate jupiter years, input 2005,8,3 , output 1 jupiter year.
- Spec : using seconds data calculate time remaining based on average usa lifespan of 2483144640 seconds, input 2008,8,3 , output 2167611839 second.
- Spec : using seconds data calculate mercury years time remaining based on average usa lifespan of 2483144640 seconds, input 2008,8,3 , output 286 mercury years.
- Spec : using seconds data calculate venus years time remaining based on average usa lifespan of 2483144640 seconds, input 2008,8,3 seconds, output 110 venus years.
- Spec : using seconds data calculate mars years time remaining based on average usa lifespan of 2483144640 seconds, input 2008,8,3 seconds, output 36 mars years.
- Spec : using seconds data calculate jupiter years time remaining based on average usa lifespan of 2483144640 seconds, input 2008,8,3 seconds, output 5 jupiter years.
- Spec : Return the age Keith Richards will be in dog years on the planet Jupiter in 2073, input 1943,12,18 , output 70
- Spec : Assuming that the average lifespan of a mayfly is 5 minutes, determine how many mayfly lifespans a human user has lived and then compare it the current age (in Earth years) of our sun (4.603 billion years), input 2008,8,3 , output 458787517
- Integration
- tbd
- UX/UI
- None
- Polish
- n/a
This software is licensed under the MIT license.
Copyright (c)2018 Will Swanson