VAT Sales Receipt Calculator in Java

This tutorial entitled “ VAT Sales Receipt Calculator Using Java ” will teach you how your 12% VAT is calculated based on your total amount purchased. Please follow all the steps to complete this tutorial.

Value Added Tax known as VAT is very important to us, especially to our fellow Filipinos. 12% VAT is automatically deducted from our consumables and other products. Usually, it is stated in our receipt if we purchase an item from any department store or retail store.

VAT Sales Receipt Calculator Steps

  1. Add/Insert a new JFrame Form.

2. Design your JFrame Form just look like the image below

3. Double-click your calculate button and insert the codes below.

[java]//calculate 12% vat
double vat12 = ((Double.parseDouble(jTextField1.getText()) / 1.12) * .12);
jTextField3.setText(String.valueOf(vat12));
//calculate vatable sales
double vatsales = (Double.parseDouble(jTextField1.getText()) – vat12);
jTextField2.setText(String.valueOf(vatsales));[/java]

4. Run your program and the output should look like the image below.

VAT Sales Receipt Calculator Using Java Output

Project Information

Project Name:VAT Sales Receipt Calculator
Language/s Used:JAVA
Database:None
Type:Desktop Application
Developer:IT SOURCECODE
Updates:0
VAT Sales Receipt Calculator In Java– Project Information

 

If you have any questions or suggestions about the VAT Sales Receipt Calculator Using Java, please feel free to contact us at our contact page.

Leave a Comment