Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public class TilingChargesGenerator
  2.  
  3. {
  4. double employeeCharge;
  5. String customerType = "XXXXXXX";
  6. int tileCost;
  7. double fittingCost;
  8. }
  9.  
  10. /**
  11. * Sets the fitting cost dependent on customer Type
  12. */
  13.  
  14. public static double setFittingCost (int width, int length){
  15. if (customerType.equals("XXXXXXX"))
  16. {
  17. this.fittingCost = Double.valueOf(width) * Double.valueOf(length) * employeeCharge * costFactor;
  18. }
  19. else
  20. {
  21. this.fittingCost = Double.valueOf(width) * Double.valueOf(length) * employeeCharge;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement