Professional Documents
Culture Documents
PROJECT
-ADITI SINGH
-11-B
-25419
Question: Develop a console-based application using Java to calculate taxable income (only direct
tax).
Algorithm:
READ name
DECLARE ti
READ income
IF(ti<=200000)
COMPUTE tax=0;
ELSE IF(ti<=300000)
COMPUTE tax=0.1*(ti-200000);
ELSE IF (ti<=500000)
COMPUTE tax=(0.2*(ti-300000))+(0.1*100000);
ELSE IF (ti<=1000000)
COMPUTE tax=(0.3*(ti-500000))+(0.2*200000)+(0.1*100000);
ELSE
COMPUTE tax=(0.4*(ti-1000000))+(0.3*500000)+(0.2*200000)+(0.1*100000);
DISPLAY name
DISPLAY tax
END main
END class
Program:
import java.util.Scanner;
OUTPUT:
Enter name of Employee
Aditi Singh
Enter income
250000
*****************************************
Name of the Employee: Aditi Singh
Income tax amount is 5000.0
*****************************************