void main() {
    String name = "Ada";
    double score = 91.5;

    IO.println(name + " scored " + score + " points.");
    IO.println(String.format("%s scored %.1f points.", name, score));
    IO.println(String.format("Half of that is %.2f.", score / 2));
}

// From Groundwork, chapter 3 (ch03-expressions-and-operators), box 7.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch03_07.java
