|
|
|
@ -13,21 +13,25 @@ constraints:
|
|
|
|
|
|
|
|
|
|
- Arrays may not be used contain the binary digits entered by the user
|
|
|
|
|
- Determining the decimal equivalent of a particular binary digit in the
|
|
|
|
|
sequence must be calculated using a single mathematical function, for
|
|
|
|
|
example the natural logarithm. It's up to you to figure out which function
|
|
|
|
|
to use.
|
|
|
|
|
sequence must be calculated using a single mathematical function, for
|
|
|
|
|
example the natural logarithm. It's up to you to figure out which function
|
|
|
|
|
to use.
|
|
|
|
|
|
|
|
|
|
## User Stories
|
|
|
|
|
|
|
|
|
|
- [ ] User can enter up to 8 binary digits in one input field
|
|
|
|
|
- [ ] User must be notified if anything other than a 0 or 1 was entered.
|
|
|
|
|
- [ ] User must be notified if anything other than a 0 or 1 was entered
|
|
|
|
|
- [ ] User views the results in a single output field containing the
|
|
|
|
|
decimal (base 10) equivalent of the the binary number that was entered
|
|
|
|
|
decimal (base 10) equivalent of the the binary number that was entered
|
|
|
|
|
|
|
|
|
|
## Bonus features
|
|
|
|
|
|
|
|
|
|
- [ ] User can enter a variable number of binary digits
|
|
|
|
|
|
|
|
|
|
## Trello Board
|
|
|
|
|
|
|
|
|
|
You can track your progress by cloning this [Trello Board](https://trello.com/b/4jB05S2L/bin2dec)
|
|
|
|
|
|
|
|
|
|
## Useful links and resources
|
|
|
|
|
|
|
|
|
|
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
|
|
|
|
@ -35,4 +39,5 @@ decimal (base 10) equivalent of the the binary number that was entered
|
|
|
|
|
## Example projects
|
|
|
|
|
|
|
|
|
|
Try not to view this until you've developed your own solution:
|
|
|
|
|
|
|
|
|
|
- [Binary to decimal conversion program for beginners](https://www.youtube.com/watch?v=YMIALQE26KQ)
|
|
|
|
|