Search This Blog

UI/UX Design | Web Development | Mobile Application Development

Whether you need UI/ UX design, web development services, or mobile app development services, Qaabil Digitals will be more than happy to help you. We work with top software developers, designers, and project managers. We tailor our services to suit your exact needs. We closely look at your company, listen to your story, and bring about the best ideas and solutions that can help you drive solid results. We don’t just produce work that works. We produce work that matters. Get a quote now Or Talk to us

Wednesday 20 April 2011

Java program which calculates total pay of an employee including convaince allounce,house rent and bonus

import java.util.*;
class salary
{
public static void main (String arg[])
{
Scanner in=new Scanner (System.in);
int a,ca;
System.out.print ("\n\t Enter basic pay of the Employe = ");
a=in.nextInt();
ca=(a/100)*3;
float t,b=25,hr=(a*25)/1000;
t=a+ca+hr;
System.out.println ("\n\t Convaince allounce = "+ca);
System.out.println ("\n\t House rent = "+hr);
System.out.println ("\n\t Total pay = "+t);
if (t<=4500)
{
t+=1000;
System.out.println ("\n\t Total pay + bonus = "+t);
}
else if (t>4500 && t<=8000)
{
t+=2000;
System.out.println ("\n\t Total pay + bonus = "+t);
}
else
System.out.println ("\n\t Not defined");
}
}

1 comment:

Share