GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — app-ideas/Projects/1-Beginner/Bin2Dec-App.md at master · Pranshu-Raj/app-ideas

Expand file tree

/

Bin2Dec-App.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
47 lines (33 loc) · 2.08 KB
/

Bin2Dec-App.md

Copy path

File metadata and controls

47 lines (33 loc) · 2.08 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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

  • 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

  • User can enter a variable number of binary digits

Useful links and resources

Binary number system

Example projects

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.