Skip to content

MacKLess/galactic-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galactic Age Calculator

Epicodus Solo Project JavaScript Week 1, 10/13/17

L. Devin MacKrell

Description

An app that determines the user's age in seconds, in years on the following planets: Mercury, Venus, Jupiter, Mars. In addition, based on inputted life expectancy, the user will be informed how many years they will have left on each planet.

Setup/Installation Requirements

Specifications

  • User enters birthday and their age is converted into seconds.
  • Example Input: October 13, 2014, October 13, 2017
  • Example Output: 94,694,400 seconds (includes a leap year)
  • User enters birthday and expected age at death for remaining years in lifespan.
  • Example Input: October 13, 2014, October 13, 2017, 82
  • Example Output: 79.00 years
  • User age is returned in Mercury years (A Mercury year is .24 Earth years; 4.17 years for every Earth year).
  • Example Input: October 13, 2014 (3 years)
  • Example Output: 12.52 Mercury years
  • User age is returned in Venus years (A Venus year is .62 Earth years; 1.61 years for every Earth year).
  • Example Input: October 13, 2014 (3 years)
  • Example Output: 4.83 Venus years
  • User age is returned in Mars years (A Mars year is 1.88 Earth years; 0.53 years for every Earth year).
  • Example Input: October 13, 2014 (3 years)
  • Example Output: 1.59 Mars years
  • User age is returned in Jupiter years (A Jupiter year is 11.86 years; 0.084 years for every Earth year).
  • Example Input: October 13, 2014 (3 years)
  • Example Output: 0.25 Jupiter years
  • Return the number of years the user has on each planet based on inputted life expectancy.
  • Example Input: 82 years, born July 11, 1978
  • Example Output: Earth, 42.70; Mercury, 178.05; Venus, 68.75; Mars, 22.63; and Jupiter, 3.59
  • If user has exceeded life expectancy, return that information.
  • Example Input: 40 years, born July 11, 1978
  • Example Output: Earth, You've outlived your expectancy by 2 years. Keep drinking those health shakes!

Further Exploration

  • Additional functionality that I'd like to include with more time:
  • Age calculators for all 7 planets (including Pluto).
  • Health factors that can impact longevity like smoking, inactivity, persistent health conditions.
  • Effects of pressure and other factors that impact longevity known to be present as differing planetary conditions (temperature, atmospheric conditions, etc.).

Bugs

There are no known bugs.

Support and contact details

Please contact [email protected] with questions, comments, or issues, or if you would like to contribute to the code.

Technologies Used

  • JavaScript
  • jQuery
  • Jasmine
  • Karma

License

Copyright (c) 2017 L. Devin MacKrell

*Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*

About

Epicodus solo practice JavaScript week 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published