pull/929/merge
viraj sharma 12 months ago committed by GitHub
commit 5ad1b9144a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,47 +1,46 @@
# 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.
Binary is the number system that all digital computers are based on. Therefore, it's important for developers to understand binary (base-2) mathematics. The purpose of **Bin2Dec** is to help users practice and understand how binary calculations work.
**Bin2Dec** allows the user to enter strings of up to 8 binary digits (0s and 1s) in any sequence and then displays their decimal equivalent.
---
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.
## Requirements
This challenge requires that the developer implementing it follows these constraints:
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 determine which function to use.
- 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
- User can enter up to 8 binary digits in one input field.
- User must be notified if anything other than a 0 or 1 is entered.
- User can view the result in a single output field containing the decimal (base-10) equivalent of the entered binary number.
- [ ] 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 views the results in a single output field containing the decimal (base 10) equivalent of the binary number that was entered
---
## Bonus features
## Bonus Features
- User can enter a variable number of binary digits.
- [ ] User can enter a variable number of binary digits
---
## Useful links and resources
## Useful Links and Resources
- [Binary number system](https://en.wikipedia.org/wiki/Binary_number)
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
---
## Example projects
## Example Projects
Try not to view these until you’ve developed your own solution:
Try not to view this until you've developed your own solution:
- Binary to Decimal conversion program for beginners
- Binary to Decimal converter using React
- Binary to Decimal converter with plain HTML, JS, and CSS
- Binary to Decimal converter using Flutter & Dart
- Live preview built with Flutter for Web
- Binary to Decimal converter using React
- Matrix-like Binary to Decimal converter using Angular
- Live preview on Heroku
- [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/#/)
- [Binary to Decimal converter using React](https://github.com/geoffctn/Bin2Dec)
- [Matrix-like Binary to Decimal converter using Angular](https://github.com/ZangiefWins/MatrixBin2Dec)
- [Live preview on heroku](https://matrix-bin2dec.herokuapp.com/)

@ -0,0 +1,36 @@
# Dec2Bin
**Tier:** 1-Beginner
Binary is the number system all digital computers are based on.
Therefore it's important for developers to understand binary numbers, or base 2 mathematics.
The purpose of Dec2Bin is to provide practice and understanding of how binary calculations work.
Dec2Bin allows the user to enter integers and displays its binary equivalent
This challenge requires that the developer implementing it follow these constraints:
- Only integer datatype is allowed as the input.
- The binary output of the integer must be a string.
## User Stories
- [ ] User can enter any integer.
- [ ] User must be notified if 0 or 1 was entered as a part of validation error.
- [ ] User views the results in a single output field containing the binary (base 2) equivalent of the decimal that was entered
## Bonus features
- [non-numeric charecters to binary] We can give option to a user to convert a group of non-numeric charecters to binary by encoding to ascii or unicode
- [click here for ascii information](https://en.wikipedia.org/wiki/ASCII)
- [click here for unicode information](https://en.wikipedia.org/wiki/Unicode)
## Useful links and resources
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
## Example projects
- [Decimal to binary program (GeeksForGeeks)](https://www.geeksforgeeks.org/dsa/program-decimal-binary-conversion/)
# HAPPY CODING!!
Loading…
Cancel
Save