void main() {
    String answer = IO.readln("Enter a price: ");

    try {
        double price = Double.parseDouble(answer.strip());
        IO.println("With tax: $" + String.format("%.2f", price * 1.08));
    } catch (NumberFormatException e) {
        IO.println("That is not a number.");
    }
}

// From Groundwork, chapter 4 (ch04-making-decisions), box 12.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch04_12.java
