Hi Guys,
I am coming in a bit late ... my code is below.
amount = ARGV[0].to_f
remainder = amount % 5
known_amount = amount - remainder
if remainder <= 2
puts
puts "Entered amount is #{amount}"
puts "Amount being rounded down is #{remainder}"
puts "Total final amount #{amount}"
puts
else
puts
puts "Entered amount is #{amount}"
puts "Amount being rounded up is #{remainder}"
puts "Total final amount #{amount + 5}"
puts
end
There will be more to come this weekend, I will be doing my home work
and posting the stuff here. Sorry for not being able to comment on
anyone's code yet.
Regards,
Vini
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders