Created
June 23, 2015 23:14
-
-
Save leimd/b7dbc5644825d2883d3f to your computer and use it in GitHub Desktop.
SignShop
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 quotes(area,no_color) | |
no_color <= 2 ? color_price = no_color * 10 : color_price = 15 * no_color | |
return (area * 15 + color_price) * 1.15 | |
end | |
puts "10 sqft and 2 color should be 195.5 Actual return #{quotes(10,2)}" | |
puts "10 sqft and 3 color should be 224.25 Actual return #{quotes(10,3)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment