Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Last active Mar 27, 2019
Embed
What would you like to do?
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