|
|
@ -1,47 +1,44 @@
|
|
|
|
# Bin2Dec
|
|
|
|
# Bin2Dec
|
|
|
|
|
|
|
|
|
|
|
|
**Tier:** 1-Beginner
|
|
|
|
**Camada:** 1-Iniciante
|
|
|
|
|
|
|
|
|
|
|
|
Binary is the number system all digital computers are based on.
|
|
|
|
Binário é o sistema numérico no qual todos os computadores digitais são baseados.
|
|
|
|
Therefore it's important for developers to understand binary, or base 2,
|
|
|
|
Portanto, é importante que os desenvolvedores entendam a matemática binário, ou base 2.
|
|
|
|
mathematics. The purpose of Bin2Dec is to provide practice and
|
|
|
|
O objetivo do Bin2Dec é fornecer prática e compreensão de como fazer os cálculos binários.
|
|
|
|
understanding of how binary calculations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bin2Dec allows the user to enter strings of up to 8 binary digits, 0's
|
|
|
|
Bin2Dec permite ao usuário inserir strings de até 8 dígitos binários, 0's
|
|
|
|
and 1's, in any sequence and then displays its decimal equivalent.
|
|
|
|
e 1's, em qualquer sequência e, em seguida, exibe seu equivalente decimal.
|
|
|
|
|
|
|
|
|
|
|
|
This challenge requires that the developer implementing it follow these
|
|
|
|
Este desafio exige que o desenvolvedor siga estas restrições:
|
|
|
|
constraints:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Arrays may not be used to contain the binary digits entered by the user
|
|
|
|
- Arrays não podem ser usados para conter os dígitos binários inseridos pelo usuário
|
|
|
|
- Determining the decimal equivalent of a particular binary digit in the
|
|
|
|
- Determinar o equivalente decimal de um dígito binário específico no
|
|
|
|
sequence must be calculated using a single mathematical function, for
|
|
|
|
sequência deve ser calculada usando uma única função matemática, por
|
|
|
|
example the natural logarithm. It's up to you to figure out which function
|
|
|
|
exemplo, o logaritmo natural. Cabe a você descobrir qual função usar.
|
|
|
|
to use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## User Stories
|
|
|
|
## Usabilidade dos Usuário
|
|
|
|
|
|
|
|
|
|
|
|
- [ ] User can enter up to 8 binary digits in one input field
|
|
|
|
- [ ] O usuário pode inserir até 8 dígitos binários em um campo de entrada
|
|
|
|
- [ ] User must be notified if anything other than a 0 or 1 was entered
|
|
|
|
- [ ] O usuário deve ser notificado se algo diferente de 0 ou 1 for inserido
|
|
|
|
- [ ] User views the results in a single output field containing the decimal (base 10) equivalent of the binary number that was entered
|
|
|
|
- [ ] O usuário visualiza os resultados em um único campo de saída contendo o equivalente decimal (base 10) do número binário inserido
|
|
|
|
|
|
|
|
|
|
|
|
## Bonus features
|
|
|
|
## Recursos bônus
|
|
|
|
|
|
|
|
|
|
|
|
- [ ] User can enter a variable number of binary digits
|
|
|
|
- [ ] O usuário pode inserir um número variável de dígitos binários
|
|
|
|
|
|
|
|
|
|
|
|
## Useful links and resources
|
|
|
|
## Links e recursos úteis
|
|
|
|
|
|
|
|
|
|
|
|
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
|
|
|
|
[Binary number system](https://en.wikipedia.org/wiki/Binary_number)
|
|
|
|
|
|
|
|
|
|
|
|
## Example projects
|
|
|
|
## Projetos de exemplo
|
|
|
|
|
|
|
|
|
|
|
|
Try not to view this until you've developed your own solution:
|
|
|
|
Tente não ver isso até desenvolver sua própria solução:
|
|
|
|
|
|
|
|
|
|
|
|
- [Binary to decimal conversion program for beginners](https://www.youtube.com/watch?v=YMIALQE26KQ)
|
|
|
|
- [Programa de conversão de binário para decimal para iniciantes](https://www.youtube.com/watch?v=YMIALQE26KQ)
|
|
|
|
- [Binary to Decimal converter using React](https://github.com/email2vimalraj/Bin2Dec)
|
|
|
|
- [Conversor binário para decimal usando React](https://github.com/email2vimalraj/Bin2Dec)
|
|
|
|
- [Binary to Decimal converter with plain html, js and css](https://grfreire.github.io/Bin2Dec/)
|
|
|
|
- [Conversor binário para decimal com html simples, js e css](https://grfreire.github.io/Bin2Dec/)
|
|
|
|
- [Binary to Decimal converter using Flutter & Dart](https://github.com/israelss/AppIdeasCollection/tree/master/Tier1/Bin2Dec)
|
|
|
|
- [Conversor binário para decimal usando Flutter & Dart](https://github.com/israelss/AppIdeasCollection/tree/master/Tier1/Bin2Dec)
|
|
|
|
- [Live preview built with Flutter for Web](https://bin2dec.web.app/#/)
|
|
|
|
- [Visualização ao vivo construída com Flutter para Web](https://bin2dec.web.app/#/)
|
|
|
|
- [Binary to Decimal converter using React](https://github.com/geoffctn/Bin2Dec)
|
|
|
|
- [Conversor binário para decimal usando React](https://github.com/geoffctn/Bin2Dec)
|
|
|
|
- [Matrix-like Binary to Decimal converter using Angular](https://github.com/ZangiefWins/MatrixBin2Dec)
|
|
|
|
- [Conversor binário para decimal semelhante a uma matriz usando Angular](https://github.com/ZangiefWins/MatrixBin2Dec)
|
|
|
|
- [Live preview on heroku](https://matrix-bin2dec.herokuapp.com/)
|
|
|
|
- [Visualização ao vivo no heroku](https://matrix-bin2dec.herokuapp.com/)
|
|
|
|