Sha256: c3c0ee0e4fbdd0614c7155c8767f46669a1091ff699ac4bd47d3d6b9a9ba9310

Contents?: true

Size: 1.58 KB

Versions: 47

Compression:

Stored size: 1.58 KB

Contents

# Space Age

Given an age in seconds, calculate how old someone would be on:

   - Earth: orbital period 365.25 Earth days, or 31557600 seconds
   - Mercury: orbital period 0.2408467 Earth years
   - Venus: orbital period 0.61519726 Earth years
   - Mars: orbital period 1.8808158 Earth years
   - Jupiter: orbital period 11.862615 Earth years
   - Saturn: orbital period 29.447498 Earth years
   - Uranus: orbital period 84.016846 Earth years
   - Neptune: orbital period 164.79132 Earth years

So if you were told someone were 1,000,000,000 seconds old, you should
be able to say that they're 31 Earth-years old.

If you're wondering why Pluto didn't make the cut, go watch [this
youtube video](http://www.youtube.com/watch?v=Z_2gbGXzFbs).

## Resources

Remember to check out the Perl 6 [documentation](https://docs.perl6.org/) and
[resources](https://perl6.org/resources/) pages for information, tips, and
examples if you get stuck.

## Running the tests

There is a test script included with the exercise; a file with the extension
`.t`. You can run the test script for the exercise by executing the command
`prove . --exec=perl6` in the exercise directory. You can also add the `-v` flag
e.g. `prove . --exec=perl6 -v` to display all tests, including any optional
tests marked as 'TODO'.

## Source

Partially inspired by Chapter 1 in Chris Pine's online Learn to Program tutorial. [http://pine.fm/LearnToProgram/?Chapter=01](http://pine.fm/LearnToProgram/?Chapter=01)

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
trackler-2.2.1.23 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.22 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.21 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.20 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.19 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.18 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.17 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.16 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.15 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.14 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.13 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.12 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.11 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.10 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.9 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.8 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.7 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.6 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.5 tracks/perl6/exercises/space-age/README.md
trackler-2.2.1.4 tracks/perl6/exercises/space-age/README.md