Top Topics in our Forum';
Interactive Parabola Grapher
Explore graph ,equation and the locus of a Parabola
Save graphs to your desktop!

A+    A−    B  
Algebra
Games
Geometry
Interactive
Trigonometry
Forum



Warning: include(/home/mathwa6/public_html/php_include/forum_left_side.php) [function.include]: failed to open stream: No such file or directory in /home/mathwa6/public_html/php_include/ontheLeft_moris.php on line 296

Warning: include() [function.include]: Failed opening '/home/mathwa6/public_html/php_include/forum_left_side.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mathwa6/public_html/php_include/ontheLeft_moris.php on line 296


AddThis Social Bookmark Button

Hexadecimal, Binary Calculator Project

Objective : To create a calculator that performs the four main operations with numbers in binary octal, decimal or, hexadecimal.

Note: If you want to make sure that your calculator works, feel free to check your results using this hex, binary, decimal calculator


Source File: HexBinCalculator.java
Requirements of the project:

Project Requirements

  • Validate User Input
    • Do not allow the user to try to try to calculate with invalid digits.
      • If the input is binary only allow 0 or 1.
      • If theinput is octal only allow 0-7 as valid digits etc…

 

  • When converting among bases of 2 use your own custom implementation of the shortcut conversion rule. This should work both whenever the input && output are both not decimal.

 

Note: Java, like most languages, has some built in support that do all of the conversions for you.(Integer.toBinaryString(myInt) is just one) Using any built in method like toBinaryString is not a legal way of completing this project since one of the goals is to become more proficient at and gain a deeper undestanding of converting numbers from one base to another. You must come up with your own algorithm that converts numbers from decimal to binary.