This tutorial will teach you Sales Tax Calculation Java.
paste this code inside the ok button
1 2 3 4 5 6 | double taxprice = Integer.parseInt(txttprice.getText()); double trate = Integer.parseInt(txttrate.getText()); double tot = trate/100 * taxprice + taxprice; txtatp.setText(String.valueOf(tot)); |
i have attached the video link below. which will do this tutorials step by step.