Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oscaramos/bintodec
Enter strings of up to 8 binary digits, 0's and 1's, in any sequence and then display its decimal equivalent.
https://github.com/oscaramos/bintodec
Last synced: 9 days ago
JSON representation
Enter strings of up to 8 binary digits, 0's and 1's, in any sequence and then display its decimal equivalent.
- Host: GitHub
- URL: https://github.com/oscaramos/bintodec
- Owner: oscaramos
- Created: 2020-04-21T02:18:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-20T04:40:09.000Z (about 4 years ago)
- Last Synced: 2023-03-03T17:13:39.674Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://oscaramos.github.io/bintodec/
- Size: 509 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bin2Dec
**Tier:** 1-Beginner
Binary is the number system all digital computers are based on.
Therefore it's important for developers to understand binary, or base 2,
mathematics. The purpose of Bin2Dec is to provide practice and
understanding of how binary calculations.Bin2Dec allows the user to enter strings of up to 8 binary digits, 0's
and 1's, in any sequence and then displays its decimal equivalent.This challenge requires that the developer implementing it follow these
constraints:- Arrays may not be used to 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.## User Stories
- [x] User can enter up to 8 binary digits in one input field
- [x] User must be notified if anything other than a 0 or 1 was entered
- [x] User views the results in a single output field containing the decimal (base 10) equivalent of the binary number that was entered## Bonus features
- [x] User can enter a variable number of binary digits
## Useful links and resources
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
## 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)
- [Binary to Decimal converter using React](https://github.com/email2vimalraj/Bin2Dec)
- [Binary to Decimal converter with plain html, js and css](https://grfreire.github.io/Bin2Dec/)
- [Binary to Decimal converter using Flutter & Dart](https://github.com/israelss/AppIdeasCollection/tree/master/Tier1/Bin2Dec)
- [Live preview built with Flutter for Web](https://bin2dec.web.app/#/)# To run this app
1. Clone this repo
2. Run npm install
3. Run npm start