Invoice App v1
Invoice Application Version 1
-
Create a copy of your InvoiceApplication class and call it InvoiceApplicationV1
- ▾ 📂 src
- ▾ 📦 (default package)
-
📄 InvoiceApplication.java
-
📄 InvoiceApplicationV1.java
-
-
Modify the code so that values for subtotal and discountPercent are taken as input from the User. You should get the output below.
Console Output
Welcome to the Invoice Total Calculator
Enter Subtotal: 200
Enter Discount percent: 0.1
Subtotal: 200.0
Discount percent: 0.1
Discount amount: 20.0
Total: 180.0