Skip to content

Application made with Javascript for Epicodus to show understanding of Javascript object creation and testing with Jest. It is designed to tell the user their age on other planets

Notifications You must be signed in to change notification settings

jhenager/space-age-calculator

Repository files navigation

Space Age Calculator

Application made in .NET framework with C# for Epicodus to show understanding of C# object creation and testing. It is designed to tell the user their age on other planets

By James Henager

Description

This calculator will determine the age of users if they were on other planets. The calculator accounts for Earth, Mercury, Venus, Mars and Jupiter. It will also tell the user how many years they should have left on each planet based on your self-determined life expectancy. If the user is older than the life expectancy it will tell them how many years older they are!

Specs

  • The program should allow a user to input their age:

    • Input: Age:
    • Output: Age: 28
  • The program should be able to convert the user's age into Mercury years.

    • Input: 28 (/.24)
    • Output: 116
  • The program should be able to convert the user's age into Venus years.

    • Input: 28 (/.62)
    • Output: 45
  • The program should be able to convert the user's age into Mars years.

    • Input: 28 (/1.88)
    • Output: 14
  • The program should be able to convert the user's age into Jupiter years.

    • Input: 28 (/11.86)
    • Output: 2
  • The program should allow the user to enter their life expectancy.

    • Input: What is your life expectancy?
    • Output: 80 years
  • The program should determine how many years left they have to live on Earth.

    • Input: 28 years
    • Output: You have 52 years to live on Earth
  • The program should determine how many years left they have to live on Mercury.

    • Input: 28 years
    • Output: You have 217 years left to live on Mercury.
  • The program should determine how many years left they have to live on Venus.

    • Input: 28 years
    • Output: You have 84 years left to live on Venus.
  • The program should determine how many years left they have to live on Mars.

    • Input: 28 years
    • Output: You have 28 years left to live on Mars.
  • The program should determine how many years left they have to live on Jupiter.

    • Input: 28 years
    • Output: You have 4 years left to live on Jupiter.
  • The program should determine if a user is already older than the expected life expectancy and calculate how many years past the life expectancy they've lived.

    • Input: 85
    • Output: You have lived 5 years past the life expectancy for Earth.

Setup/Installation Requirements

Known Bugs

Currently there is no user interface

Support and contact details

Contact me at [email protected]

Technologies Used

Javascript, Jest, Babel

License

GPL license distribution

Copyright (c) 2020 James Henager

About

Application made with Javascript for Epicodus to show understanding of Javascript object creation and testing with Jest. It is designed to tell the user their age on other planets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published