Created
March 29, 2016 22:36
-
-
Save stupeters187/4048a9b328ed7c818c2abc20083797b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sign_order | |
puts "How many square feet is your sign?" | |
size = gets.chomp.to_i | |
subtotal_1 = size * 15 | |
puts "How many colours would you like?" | |
colours = gets.chomp.to_i | |
if colours <= 2 | |
subtotal_2 = colours * 10 | |
else | |
subtotal_2 = colours * 15 | |
end | |
total = subtotal_1 + subtotal_2 | |
total_with_tax = total * 1.13 | |
puts "Your total is #{total_with_tax}" | |
end | |
sign_order |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment