marks = -85 case marks when 0..59  puts “You got an F”  when…

marks = -85 case marks when 0..59  puts “You got an F”  when 60..69  puts “You got a D grade !”  when 70..79  puts “You got a C grade!” when 80..89  puts “You got a B grade!” else puts  “You got an A grade!”  end  What will be the output when marks = -85 ? 

taxrate = 0.125print “Enter price: “s = getssubtotal = s.to_…

taxrate = 0.125print “Enter price: “s = getssubtotal = s.to_fif (subtotal < 0.0) then subtotal = 0.0endtax = subtotal * taxrateputs "Tax on $#{subtotal} is $#{tax}, so grand total is $#{subtotal+tax}" The end keyword that terminates the if block is optional in the code above.