Updated ex04.rb to show a more efficient way of handling user input to float conversion.