// Prints a personalized receipt. Each price is stored once, in a variable.

void main() {
    String customer = IO.readln("Customer name: ");

    double notebookPrice = 3.50;
    double pensPrice = 2.25;
    double stickersPrice = 1.75;

    double total = notebookPrice + pensPrice + stickersPrice;

    IO.println();
    IO.println("===== CORNER STORE =====");
    IO.println("Customer: " + customer);
    IO.println();
    IO.println("Notebook           " + notebookPrice);
    IO.println("Pens (pack of 4)   " + pensPrice);
    IO.println("Stickers           " + stickersPrice);
    IO.println("------------------------");
    IO.println("Total              " + total);
}

// From Groundwork, chapter 2 (ch02-variables-and-types), box 18.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch02_18.java
