LeoneOdinga / NumberSystems

Implementations of various number systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NumberSystems (Courtesy of COA Group Project)

Implementations of various number systems

1. The File called DecimalFractionToBinary.java will be converting floating point numbers to equivalent binary numbers according to the following question:

Write a program (Java or C++) to convert from decimal notation to binary notation for thirty (30) randomly generated floating-point numbers with at most three decimal points e.g., 123.875. Your result should give a list of randomly generated numbers, resulting binary notation and remarks column having exactly or approximately (with at most five (5) decimal points) remark. Table Q1 (b) shows a sample of an expected results for 11.81 and 21.25 respectively.

S/No Decimal Number Binary Number Remarks
1 11.81 1011.01100 Approximate
2 21.25 10101.01 Exactly

2.The File called DecToBinToHex.java will be automatically converting decimal numbers from 1 to 256 to equivalent binary numbers and hexadecimal numbers while displaying them on a table

Table Illustration

Dec Number Binary Number Hexadecimal
0 0000 0
1 0001 1

About

Implementations of various number systems


Languages

Language:Java 100.0%