Skip to content

Instantly share code, notes, and snippets.

@jasongorman

jasongorman/CarpetQuote.java Secret

Created May 9, 2021
Embed
What would you like to do?
public class CarpetQuote {
public double calculate(double pricePerSqM,
Shape shape) {
return Math.ceil(shape.getArea() * pricePerSqM);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment