Skip to main content
added 5 characters in body
Source Link

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * \ln(d) + 31 $$$$ n = 16 \times \ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * \ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 \times \ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

added 1 character in body
Source Link

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * ln(d) + 31 $$$$ n = 16 * \ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * \ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

added 83 characters in body
Source Link
Jonathan Allan
  • 108k
  • 7
  • 64
  • 277

Task

Take the (integer) number of human years that the dog has lived, n\$n\$, as input and return it'sits age in dog years, \$d\$, to two decimal places.

The
The number of human years, n may\$n\$, will be within the range of 1 to 122 years oldbetween \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$. According

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * ln(d) + 31 $$ Where

n →\$n\$ is the age in human years

d →\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the number of human years that the dog has lived n as input and return it's age in dog years.

The number of human years n may be within the range of 1 to 122 years old. According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * ln(d) + 31 $$ Where

n → age in human years

d → age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

Task

Take the (integer) number of human years that the dog has lived, \$n\$, as input and return its age in dog years, \$d\$, to two decimal places.
The number of human years, \$n\$, will be between \$1\$ and \$122\$ inclusive: \$n \in [1,122], n \in \Bbb{N}\$.

According to BBC's Science Focus Magazine, the correct function for determining your dog's age is: $$ n = 16 * ln(d) + 31 $$ Where

\$n\$ is the age in human years

\$d\$ is the age in dog years

Rules

The final output in dog years must be a decimal, rounded to 2 decimal places.

added decimal places
Source Link
Razetime
  • 27.3k
  • 3
  • 28
  • 72
Loading
changed cutoff age
Source Link
Razetime
  • 27.3k
  • 3
  • 28
  • 72
Loading
boldened rule, added input constraints
Source Link
Razetime
  • 27.3k
  • 3
  • 28
  • 72
Loading
Source Link
Razetime
  • 27.3k
  • 3
  • 28
  • 72
Loading