(answer 2) should beIf input is "0x.1" then it will return Float.Nan and print Invalid Input 0x.1 and finally.
andIf input is "0x.1" then it will return Float.NaN and print Invalid input 0x.1 and finally.
(answer 4) should be:If input is "0x1" then it will return 0.0 and print Invalid Input 0x1 and finally.
If input is "0x1" then it will return 0.0 and print Invalid input 0x1 and finally.