Good day.
I just started to study Ruby and the following question arose.
puts "How much $ would you like to earn?" goal=gets.chomp.to_f How easy is it to check that the user entered data in the dd.cc format (d-dollar, c-cents) - 3.40, 100.50, 60.00?
And if the user has entered incorrectly - to display an error message.
Thank you.