I'm very new to Java and we have an assignment I can't figure out. If I can get some feedback or help on how to do it, it would be much appreciated. Thank you!
I am asked to modify this code to have float variables (which I have done) then I am to add a second pair of float variables, and include logical operators &&, and || to print out the results if both comparisons are true or either are true.
Why are you using floats? They should be reserved for instances where one can specifically cope with their imprecision. For example in colours, where you can use floats between 0.0f and 1.0f inclusive, but there are actually 256 different values in that range.