Skip to content

An application that calculates age in the years of different planets (Epicodus JavaScript Week 1 Code Review)

Notifications You must be signed in to change notification settings

codemargaret/galactic-calculator

Repository files navigation

Super Galactic Age Calculator

An application that returns age in years of different planets, 10.13.2017

By Margaret Berry

Description

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.

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd galactic-calculator
  3. $ npm install
  4. $ bower install
  5. $ gulp build
  6. $ gulp serve

Specifications

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

Known Bugs

There are no known bugs at this time.

Future Features

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.

Support and contact details

If you have issues, questions, ideas, or concerns, please contact Margaret. Feel free to make a contribution to the code.

Technologies Used

  • JavaScript
  • Node
  • Bower
  • Jasmine
  • Karma

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry

About

An application that calculates age in the years of different planets (Epicodus JavaScript Week 1 Code Review)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published