class Employsalary
{
public static void main(String args[])
{
double BS[4];
int HRS[4],i;
double AMT[4];
BS[0]=7.5;
BS[1]=8.20;
BS[2]=10.00;
BS[3]=7.00;
HRS[0]=35;
HRS[1]=47;
HRS[2]=73;
HRS[3]=65;
for(i=0;i<4;i++)
{
if(BS[i]<8.00)
System.out.println("!!!!!!!!ERROR!!!!!!!!!!");
else
{
if((BS[i]<8.00)&&HRS[i]<=40)
AMT[i]=(double)HRS*BS[i];
if((BS[i]<8.00)&&HRS[i]>=40&&HRS[i]<=60)
{
OVT=hrs[i]-40;
AMT[i]=40*BS[i]+((double)OVT*BS[i]*1.5);
}
if((BS[i]<8.00)&&HRS[i]>60)
AMT[i]=60*BS[i];
}
}
for(i=0;i<4;i++)
{
if(BS[i]<(8.00))
{
System.out.println("Amount of employee"+i "is:" +AMT[i]);
}
}
}
}
Tuesday, 4 September 2012
NAME-ARPITA MOHAPATRA,ROLL-29705,CODE-CSEL-10X
class Employ
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!!!!!!!!!");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
{
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
}
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!!!!!!!!!");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
{
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
}
NAME-ARPITA MOHAPATRA,ROLL-29705,CODE-CSEL-10X
class Employ
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!!!!!!!!!");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
{
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
}
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!!!!!!!!!");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
{
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
}
Name-Rutabari Acharya, Roll No.-29731, Assignment Code-CSEL-10x
class Employee;
{
public static void main(String[] args)
{
double bPay,salary[];
int hrs[], i;
bPay[0]=7.50;
bPay[1]=8.20;
bPay[2]=10.00;
bPay[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bPay[i]<8.00)
{
System.out.println("ERROR!");
}
else
{
if(hrs[i]<=40)
{
salary[i]=bPay[i]*hrs[i];
}
else if(hrs[i]>40 && hrs[i]<=60)
{
int overtime=hrs[i]-40;
salary[i]=(40*bPay[i]+(overtime*bPay[i]*1.5));
}
else if(hrs[i]>60)
{
salary[i]=(40*bPay[i])+(20*bPay[i]*1.5);
}
}
}
for(i=0;i<4;i++)
{
if(bPay[i]>8.00)
{
System.out.println("The Salary Of"+i+1+"is"+salary[i]+"$");
}
}
}
Name-Rajashree Mallick, Roll No.-29727, Assignment Code-CSEL-10x
class Emp
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!basicpay must not less than minimum wage");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
{
public static void main(String args[])
{
double bsp[4];
int hrs[4],i;
double amount[4];
bsp[0]=7.5;
bsp[1]=8.20;
bsp[2]=10.00;
bsp[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bsp[i]<8.00)
System.out.println("ERROR!!basicpay must not less than minimum wage");
else
{
if((bsp[i]<8.00)&&hrs[i]<=40)
amount[i]=(double)hrs*bsp[i];
if((bsp[i]<8.00)&&hrs[i]>=40&&hrs[i]<=60)
{
ovt=hrs[i]-40;
amount[i]=40*bsp[i]+((double)ovt*bsp[i]*1.5);
}
if((bsp[i]<8.00)&&hrs[i]>60)
amount[i]=60*bsp[i];
}
}
for(i=0;i<4;i++)
{
if(bsp[i]<(8.00))
System.out.println("Amount of employee"+i "is:" +amount[i]);
}
}
}
DEBASHREE PATTANAIK , ROLLNO-29712 ,ASSIGNMENT CODE-CSEL-10X
import java.lang;
public class Emp
{
public static void main(String[] args)
{
double bPay,sal[];
int hrs[], i;
bPay[0]=7.50;
bPay[1]=8.20;
bPay[2]=10.00;
bPay[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bPay[i]<8.00)
{
System.out.println("ERROR!");
}
else
{
if(hrs[i]<=40)
{
sal[i]=bPay[i]*hrs[i];
}
else if(hrs[i]>40 && hrs[i]<=60)
{
int overtime=hrs[i]-40;
sal[i]=(40*bPay[i]+(overtime*bPay[i]*1.5));
}
else if(hrs[i]>60)
{
sal[i]=(40*bPay[i])+(20*bPay[i]*1.5);
}
}
}
for(i=0;i<4;i++)
{
if(bPay[i]>8.00)
{
System.out.println("The Salary Of"+i+1+"is"+sal[i]+"$");
}
}
}
{
public static void main(String[] args)
{
double bPay,sal[];
int hrs[], i;
bPay[0]=7.50;
bPay[1]=8.20;
bPay[2]=10.00;
bPay[3]=7.00;
hrs[0]=35;
hrs[1]=47;
hrs[2]=73;
hrs[3]=65;
for(i=0;i<4;i++)
{
if(bPay[i]<8.00)
{
System.out.println("ERROR!");
}
else
{
if(hrs[i]<=40)
{
sal[i]=bPay[i]*hrs[i];
}
else if(hrs[i]>40 && hrs[i]<=60)
{
int overtime=hrs[i]-40;
sal[i]=(40*bPay[i]+(overtime*bPay[i]*1.5));
}
else if(hrs[i]>60)
{
sal[i]=(40*bPay[i])+(20*bPay[i]*1.5);
}
}
}
for(i=0;i<4;i++)
{
if(bPay[i]>8.00)
{
System.out.println("The Salary Of"+i+1+"is"+sal[i]+"$");
}
}
}
Name- Susri Saswati , Roll- 29739 , Assignment Code- CSEL-10x
//Program for calculating Total Salary from given Basic Pay per hour
and Working Hour
class TotalSalary
{
public static void main(String[] args)
{
int hours[]={35,47,73,65};
double basicpay[]={7.50,8.20,10.00,7.00};
double totalsalary[]={0.00,0.00,0.00,0.00};
for(int i=0;i<4;i++)
{
if(basicpay[i]<8.00)
{
System.out.println("ERROR !!!\tBasic Pay must not be less than
minimum wage($8.00 per hour)");
}
else if(hours[i]>40&&hours[i]<=60)
{
int overtime=hours[i]-40;
totalsalary[i]=(basicpay[i]*40)+(overtime*basicpay[i]*1.5);
System.out.println((i+1)+"th Employee's Total Salary :
"+totalsalary[i]+"$");
}
else if(hours[i]>60)
{
totalsalary[i]=(basicpay[i]*40)+(20*basicpay[i]*1.5);
System.out.println((i+1)+"th Employee's Total Salary :
"+totalsalary[i]+"$");
}
}
}
};
and Working Hour
class TotalSalary
{
public static void main(String[] args)
{
int hours[]={35,47,73,65};
double basicpay[]={7.50,8.20,10.00,7.00};
double totalsalary[]={0.00,0.00,0.00,0.00};
for(int i=0;i<4;i++)
{
if(basicpay[i]<8.00)
{
System.out.println("ERROR !!!\tBasic Pay must not be less than
minimum wage($8.00 per hour)");
}
else if(hours[i]>40&&hours[i]<=60)
{
int overtime=hours[i]-40;
totalsalary[i]=(basicpay[i]*40)+(overtime*basicpay[i]*1.5);
System.out.println((i+1)+"th Employee's Total Salary :
"+totalsalary[i]+"$");
}
else if(hours[i]>60)
{
totalsalary[i]=(basicpay[i]*40)+(20*basicpay[i]*1.5);
System.out.println((i+1)+"th Employee's Total Salary :
"+totalsalary[i]+"$");
}
}
}
};
Subscribe to:
Posts (Atom)
Pro
https://drive.google.com/file/d/1II09HToizTTjISF5TlmGcc2ew_YxiFja/view?usp=drive_link
-
CLOUD COMPUTING - 1 by Dr. S K Nayak Table of Contents Syllabus Cloud c...
-
,Semester,Roll No,Regn No,Student Name,Mentor/faculty,Mentor Ph No,Mentor e Mail ,4th yr BTech,417001,2201105001,ABHILASH DEHURY,Prof S.N.Mi...
-
============================================= Lecture note, Monday 19 September 2016 07:00:48 AM IST ===================================...