From 3f4a55f605f997b2bc755cca8c1a7ff23021f966 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 1 May 2022 14:51:16 +0100 Subject: [PATCH] docs(dog-years): correct grammar --- subjects/dog-years/README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/subjects/dog-years/README.md b/subjects/dog-years/README.md index 51d5e3ca..db6f6915 100644 --- a/subjects/dog-years/README.md +++ b/subjects/dog-years/README.md @@ -2,20 +2,19 @@ ### Instructions -Someone once said that a dog makes 7 years for each human year. +Someone once said that a human year is equal to 7 dog years. -Create a `dogYears` function that if given a planet name and an age in seconds, -calculates how old a dog would be on the given planet. +Create a function named `dogYears`, that accepts the name of a planet, and the age of the dog in seconds. Your function should return the age of the dog on that planet in dog years. -- `earth` : orbital period 1.0 Earth years, 365.25 Earth days, or 31,557,600 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 +- `earth`: orbital period 1.0 Earth years, 365.25 Earth days, or 31,557,600 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 that their dog were 1,000,000,000 seconds old, you should be able to say that the dog is 221.82 Earth-years old. +If you were told that a dog was 1,000,000,000 seconds old, you should calculate that the dog would be 221.82 Earth-years old. You will have to format the number so that the result is rounded like the example above.