Write a java program that calculates the changes for a cashier. The program request the cost of the item. The Program then outputs the cost of the item including the sales tax. (use 6% as the sales tax value). The program next request is to receives the amount tendered by the customer, finally the program ouputs a summary of all figures, including the amount of change due to the customer.[/B]
This is my code
import java.io.*;
public class Change{
public static void main(String [] args)throws IOException{
BufferedReader Stdin = new BufferedReader (new InputStreamReader(System.in));
double cost;
double tax;
double payment;
double getCost();
double getTax();
double getPayment();
i need to apply these methods too:
void setCost(double x)
void setTax(double x)
void setPayment(double x)
using Peso currency and centavos
Thank you,