MisterCarenioso.findtalk.biz

This is a Free and Open Source Forum that allows student to Copy and Use the Codes Embeded.Please keep This Site Secretly as Much as Possible do not Share This Site to anyone.Thank you By: MisterCarenioso.
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Programming (Payment)

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts: 67
Join date: 2009-11-24
Age: 20
Location: Philippines

PostSubject: Programming (Payment)   Sat Nov 28, 2009 1:49 am

import java.io.*;
class getprocess {

void computeGrossPay(double x) {
System.out.println();
System.out.println("the Grosspay is :"+x*5.65);
System.out.println();
System.out.println("The Net pay is : "+(((x*5.65)-(0.10*x)*5.65)));
System.out.println();
System.out.println("the tax deducted to item is :"+x*5.65*0.10);
}
public void computeGrossPay(double x,double y){
System.out.println();
System.out.println("the Grosspay is :"+x*y);
System.out.println();
System.out.println("the tax deducted to item is :"+x*y*0.10);
System.out.println();
System.out.println("The Net pay is : "+(((x*y)-(0.10*x)*y)));


}
void computeGrossPay(double w,double r,double t ) {
t=t/100;
System.out.println();
System.out.println("the Grosspay is :"+w*r);
System.out.println();
System.out.println("the tax deducted to item is :"+((w*r)*t));
System.out.println();
System.out.println("The Net pay is : "+(((w*r)-(t*w)*r)));


}


}
class process {
public static InputStreamReader reader = new InputStreamReader (System.in);
public static BufferedReader input = new BufferedReader(reader);
public static void main (String args[])throws Exception {

getprocess ob = new getprocess();
double w;
double r=0;

double t=0;
int hour;
System.out.println("Enter workhour :");
w=Double.parseDouble(input.readLine());
System.out.println();
System.out.println("Enter rate per hour :");
r=Double.parseDouble(input.readLine());
System.out.println();
System.out.println("Enter how many percent taxrate");
t=Double.parseDouble(input.readLine());
if (w!=0&&r!=0&&t!=0){
ob.computeGrossPay(w,r,t);
}else if(w!=0&&r!=0){
ob.computeGrossPay(w,r);
}else if(w!=0&&r==0&&t==0){
ob.computeGrossPay(w);
}


}
}
Back to top Go down
View user profile http://mistercarenioso.findtalk.biz
 

Programming (Payment)

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» ProAutoSurf - Paid to autosurf! With payment proof!
» C++ programming vol:1
» Stanford Computer Programming I, II and II (OCW)
» Instant Cash Sweepstakes! Paypal money! (proof of payment)
» Hanna-BUX Payment

Permissions in this forum:You cannot reply to topics in this forum
MisterCarenioso.findtalk.biz :: Your first category :: Your first forum-