diff --git a/exercises/practice/binary/.docs/instructions.md b/exercises/practice/binary/.docs/instructions.md index 046fd3e0..b63381c9 100644 --- a/exercises/practice/binary/.docs/instructions.md +++ b/exercises/practice/binary/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles. +Convert a binary number, ...represented as a string (e.g. '101010'), to its decimal equivalent using first principles. Implement binary to decimal conversion. Given a binary input string, your program should produce a decimal output. @@ -20,7 +20,7 @@ A number 23 in base 10 notation can be understood as a linear combination of pow - The rightmost digit gets multiplied by 10^0 = 1 - The next number gets multiplied by 10^1 = 10 - ... -- The *n*th number gets multiplied by 10^*(n-1)*. +- The *n*th number gets multiplied by 10^_(n-1)_. - All these values are summed. So: `23 => 2*10^1 + 3*10^0 => 2*10 + 3*1 = 23 base 10` diff --git a/exercises/practice/binary/.meta/config.json b/exercises/practice/binary/.meta/config.json index 17c289dc..50bab692 100644 --- a/exercises/practice/binary/.meta/config.json +++ b/exercises/practice/binary/.meta/config.json @@ -1,20 +1,10 @@ { - "authors": [ - "qjd2413" - ], - "contributors": [ - "parkerl" - ], + "authors": ["qjd2413qeqwe"], + "contributors": ["parkerl"], "files": { - "solution": [ - "binary.pl" - ], - "test": [ - "binary_tests.plt" - ], - "example": [ - ".meta/binary.example.pl" - ] + "solution": ["binary.pl"], + "test": ["binary_tests.plt"], + "example": [".meta/binary.example.pl"] }, "blurb": "Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles.", "source": "All of Computer Science", diff --git a/exercises/practice/binary/.meta/tests.toml b/exercises/practice/binary/.meta/tests.toml index e098563a..69f3485d 100644 --- a/exercises/practice/binary/.meta/tests.toml +++ b/exercises/practice/binary/.meta/tests.toml @@ -1,4 +1,4 @@ -# This is an auto-generated file. +# This is an auto-generated file..... # # Regenerating this file via `configlet sync` will: # - Recreate every `description` key/value pair diff --git a/exercises/practice/binary/binary.pl b/exercises/practice/binary/binary.pl index 0b3e86af..c7d02581 100644 --- a/exercises/practice/binary/binary.pl +++ b/exercises/practice/binary/binary.pl @@ -1 +1 @@ -binary(Str, Dec). +binary(Str, Dec)....