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 (Change)

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


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

PostSubject: Programming (Change)   Sat Nov 28, 2009 1:47 am

import java.io.*;
class getprocess {

public double getCost(double x,double y,double z) {
return x*y+z;
}
public double getTaxt(double x, double y ) {
return x*y;
}
public double getPayment(double x, double y, double z,double s) {
return x-(y*z+s);
}

}
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 cost1=0;

double tax;
double payment;
double cost;
System.out.println("Enter the cost of item :");
cost=Integer.parseInt(input.readLine());
System.out.println();
System.out.println("The cost of item w/ 6% tax : " + ob.getCost(cost,0.06,cost));
System.out.println("The tax to be added to your item is :" + ob.getTaxt(cost,0.06));
System.out.println();
System.out.println("Enter your payment");
payment=Integer.parseInt(input.readLine());
System.out.println("your change is : " + ob.getPayment(payment,cost,0.06,+cost));
}
}
Back to top Go down
View user profile http://mistercarenioso.findtalk.biz
 

Programming (Change)

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

 Similar topics

-
» ec 121 cdma reliance esn change
» C++ programming vol:1
» Stanford Computer Programming I, II and II (OCW)
» Change Data Capture
» Does a SCD Type 1 Change Response Always Update All Historical Records?

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