Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TilingChargesGenerator
- {
- double employeeCharge;
- String customerType = "XXXXXXX";
- int tileCost;
- double fittingCost;
- }
- /**
- * Sets the fitting cost dependent on customer Type
- */
- public static double setFittingCost (int width, int length){
- if (customerType.equals("XXXXXXX"))
- {
- this.fittingCost = Double.valueOf(width) * Double.valueOf(length) * employeeCharge * costFactor;
- }
- else
- {
- this.fittingCost = Double.valueOf(width) * Double.valueOf(length) * employeeCharge;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement