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));
}
}