You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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