Skip to content

FaisalRana/Project5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 5: Space Age Calculator

By Faisal Rana

Description of program

This is a website that will take a persons earth age and demographics as inputs and output their age on Mercury, Venus, Mars and Juputer. The website will also output a life expectancy.

Technologies used

  • HTML
  • CSS
  • Bootstrap
  • Javascript
  • jQuery
  • Construcor function
  • Prototype method
  • ES6 Classes, Template Literals
  • Webpack
  • Jest
  • Babel
  • Lint

Tests

Please see Person.test.js in the tests folder for more detailed information. This is a rough plan that the program was conceptually started with.

  • Test 1 - Checks to see if constructor is created correctly. Person();
  • Test 2 - Returns age for Earth in years EarthAge();
  • Test 3 - Returns age for Venus, Mercury, Mars and Juputer in years PlanetAge();
  • Test 4 - Returns age for Mars in years
  • Test 5 - Returns age in Jupiter in years
  • Test 6 - Determines life expetency on earth and returns time left.
  • Test 7 - Determines life expectency on other planets and returns time left.
  • Test 8 - If a person has lived longer than the life expectancy, it will tell them how much longer they have lived.

Program setup instructions

To view, access the Github pages site in your preferred browser.

To setup:

  • Clone this repository to your desktop
  • Navigate to the top level of the directory
  • Install Dependencies using npm install
  • Create production environment with terminal command $ npm run build
  • Lint code with the command $ npm run lint
  • Run tests in Jest with the command $ npm test
  • Run $npm start to launch index.html from dist folder in a browser, lint the code and clean up the directory

Github pages website

https://faisalrana.github.io/Project5a/

Copyright and license info

Copyright (c)2021 Faisal Rana

About

Click below to launch website.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors