I did this practice work on my own.
CALCULATE THE TOTAL EARNING OF A WORKER.
Total earning of a worker
Total earning;
{
public static void main(string)[] args) {
// Total Amount
Int Housing allowance (HA) {Housing allowance=HA;}
Int Basic salary (BS) {Basic salary =BS;}
Int Feeding allowance {Feeding allowance =FA;}
Int Transport allowance {Transport allowance=TA;}
Int Miscellaneous allowance {Miscallaneous allowance=MA;}
// Adding total earning
system.out.println ("Adding");
system.out.pintln ("HA+BS+FA+TA+MA = "+(HA+BS+FA+TA+MA));
}
}