Invoice App
Invoice Application
-
Create a new class called InvoiceApplication
- ▾ 📂 src
- ▾ 📦 (default package)
-
📄 InvoiceApplication.java
-
-
Add the code below
| InvoiceApplication | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
- Run the program and you should see the following output.
Console Output
Welcome to the Invoice Total Calculator
Subtotal: 100.0
Discount percent: 0.2
Discount amount: 20.0
Total: 80.0