A project to practice test driven development and use object oriented programming. See it live here: https://breaclark.github.io/space-calculator/
Specification | Input | Output |
---|---|---|
Program takes an input of a person's age in years and outputs a person's age in seconds | 35 years | 1,104,493,320 seconds |
Program takes in two dates outputs the time between them in seconds | August 9th, 1992 and April 20th, 2018 | 810,894,810 seconds |
Program takes in a birth date and outputs the time between then and now in seconds | August 9th, 1992 | 810,894,810 seconds |
Program can return output of above in Mercury years | April 20th, 1993 | 6 years |
Program can return output of above in Venus years | April 20th, 1993 | 15.5 years |
Program can return output of above in Mars years | April 20th, 1993 | 47 years |
Program can return output of above in Jupiter years | April 20th, 1993 | 296.5 years |
Program can return remaining years life expectancy on Mercury | April 20th, 1993 | 12.88 years |
Program can return remaining years life expectancy on Venus | April 20th, 1993 | 33.29 years |
Program can return remaining years life expectancy on Mars | April 20th, 1993 | 100.95 years |
Program can return remaining years life expectancy on Jupiter | April 20th, 1993 | 636.88 years |
Program can return years past life expectancy on Mercury if current age is past life expectancy | April 20th, 1901 | -9.19 years |
Program can return years past life expectancy on Venus if current age is past life expectancy | April 20th, 1901 | -23.74 years |
Program can return years past life expectancy on Mars if current age is past life expectancy | April 20th, 1901 | -72.00 years |
Program can return years past life expectancy on Jupiter if current age is past life expectancy | April 20th, 1901 | -454.23 years |
- Clone Repository
- Navigate into repository clone
- Run npm install from terminal
- Run npm run start from terminal
- HTML
- CSS
- JavaScript
- Jasmine
- Karma
- ESLint
- GPL
Brea Clark © 2018