Java program for calculating taxes