Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Model;
- public class model {
- public double kilowatt;
- public double basicCharge;
- public double excessCharge;
- public double vat;
- public double total;
- public static int consumerCount;
- public static int consumerCount2;
- public model(double kilowatt2, double basicCharge2, double excessCharge2, double vat2, double total2) {
- // TODO Auto-generated constructor stub
- this.kilowatt = kilowatt2;
- this.basicCharge = basicCharge2;
- this.excessCharge = excessCharge2;
- this.vat = vat2;
- this.total = total2;
- }
- public void model(double kilowatt, double basicCharge, double excessCharge, double vat, double total) {
- this.kilowatt = kilowatt;
- this.basicCharge = basicCharge;
- this.excessCharge = excessCharge;
- this.vat = vat;
- this.total = total;
- }
- public void print()
- {
- System.out.println("Consumed kilowat hours: " + kilowatt );
- System.out.println("Basic Charge: " + basicCharge);
- System.out.println("Excess Charge: " + excessCharge);
- System.out.println("VAT: " + vat);
- System.out.println("Total Electricity Bill: " + total);
- }
- }
Add Comment
Please, Sign In to add comment