Untitled Document
Untitled Document
Aim:
he aim of this Java program is to calculate the total salary of an employee based on their basic
T
salary, including allowances such as HRA, DA, and TA.
Program :
import java.util.Scanner;
Output:
onclusion:
C
The program assumes fixed percentages for HRA and DA and a fixed amount for TA, which are
common scenarios in salary calculations. It provides a straightforward example of how to
perform basic arithmetic operations and handle user input in Java.