Question: Write a program in JAVA to read in a 32-bit pattern and translate to a IEEE-754 floating point number. Do not use library routines. Be

Write a program in JAVA to read in a 32-bit pattern and translate to a IEEE-754 floating point number. Do not use library routines. Be sure to look for infinity, -infinity, zero and NaN patterns. ( This is what I NEED, My SPECIFIED NEED., please use the import: import javax.swing.JOptionPane; for the input and output, then a loop to check and see if there are any special patterns, exp: NaN, -infinity, infinity, ect... If not check it with something like this ..............

sign=(inputString.CharAt(0)=='0'?1:-1);

String expString=inputString,substring(1,8);

String mainString=inputSting.substring(9)

Relatively new to coding, so the simpler the better. That way I understand what I am doing , thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!