Skip to content

πŸ‘¨πŸΌβ€πŸ’» Binary is the number system all digital computers are based on. Therefore it's important for developers to understand binary, or base 2, mathematics.

License

Notifications You must be signed in to change notification settings

vilmarsitiodigital/bin2dec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ReactJS Application for Bin2Dec project

Project of studant bin2dec

GitHub top language Made by Repository size GitHub last commit Repository issues GitHub

About the projectΒ Β Β |Β Β Β  TechnologiesΒ Β Β |Β Β Β  Getting startedΒ Β Β |Β Β Β  How to contributeΒ Β Β |Β Β Β  License


Bin2Dec

πŸ‘¨πŸΌβ€πŸ’» About the project

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 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 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

Bonus features

  • User can enter a variable number of binary digits

πŸš€ Technologies

Technologies that I used to develop this web client

πŸ’» Getting started

Requirements

  • Have this application's API running

Clone the project and access the folder

$ git clone https://github.com/vilmarsitiodigital/bin2dec.git && cd bin2dec

Follow the steps below

# Install the dependencies
$ yarn

# Be sure the file 'src/services/api.ts' have the IP to your API

# Start the client
$ yarn start

πŸ€” How to contribute

Make a fork of this repository

# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork vilmarsitiodigital/bin2dec

Follow the steps below

# Clone your fork
$ git clone your-fork-url && cd bin2dec

# Create a branch with your feature
$ git checkout -b my-feature

# Make the commit with your changes
$ git commit -m 'Feature: My new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with πŸ’š by Vilmar Batista 🀝 See my linkedin

About

πŸ‘¨πŸΌβ€πŸ’» Binary is the number system all digital computers are based on. Therefore it's important for developers to understand binary, or base 2, mathematics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published