require "./checkout.rb" checkout = Checkout.new() checkout.add(:PI5) checkout.add(:ZERO2W) puts checkout.items # ["PI5", "ZERO2W"] puts checkout.total # 75.00 checkout = Checkout.new() checkout.add(:ZERO2W) checkout.add(:ZERO2W) puts checkout.total # 15.00 checkout = Checkout.new() checkout.add(:ZERO2W) checkout.add(:ZERO2W) checkout.add(:ZERO2W) puts checkout.total # 30.00 checkout = Checkout.new() checkout.add(:PICO2) checkout.add(:PICO2) checkout.add(:PICO2) puts checkout.total # 10.50 checkout = Checkout.new() checkout.add(:PI5) checkout.add(:ZERO2W) checkout.add(:ZERO2W) checkout.add(:PICO2) checkout.add(:PICO2) checkout.add(:PICO2) checkout.add(:PICO2) puts checkout.total # 89.00