-
-
Save jasongorman/91aa43ee0b0e032aec4d0ef8b015df26 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
fun quote(room : Room, carpet : Carpet) : Double{ | |
var area = room.width * room.length | |
if(carpet.roundUp) | |
area = Math.ceil(area) | |
return carpet.pricePerSqrMetre * area | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment