import java.util.Scanner; public class Bottle { private static final int MAX=100; //max constant private static final int MIN=0; // min constant static Scanner scan = new Scanner(System.in); private int noOfBottle=0; //method 1 to read the value form console public void read() { int x = scan.nextInt(); noOfBottle=x; } //method 2 to set the no of bottle property of bottle class public void set(int a) { if(a<=MAX) { noOfBottle=a; }else { System.out.println(\"number is greater than max value\"); } } //method 3 to set the noOfBottle property from bottle object public void setBottle(Bottle a) { if(a.noOfBottle<=MAX) { noOfBottle=a.noOfBottle; }else { System.out.println(\"number is greater than max value\"); } } //method 4 to get he noOfBottle value public int get() { return this.noOfBottle; } //method 5 addition of bottle objects public Bottle add(Bottle bottle) { if(this.noOfBottle+bottle.noOfBottle<=MAX) { this.noOfBottle=this.noOfBottle+bottle.noOfBottle; } else { System.out.println(\"Alert : addition excedding the maximum number \"); } return this; } //method 6 subtraction of bottle objects public Bottle subtract(Bottle bottle) { if(this.noOfBottle-bottle.noOfBottle>=MIN) { this.noOfBottle=this.noOfBottle-bottle.noOfBottle; } else { System.out.println(\"Alert : Subtraction reducing the bottle to below min range possible \"); } return this; } //method 7 multiplication of bottle objects public Bottle multiply(Bottle bottle) { if(this.noOfBottle*bottle.noOfBottle<=MAX) { this.noOfBottle=this.noOfBottle*bottle.noOfBottle; } else { System.out.println(\"Alert : Multiplication exceeding MAX value \"); } return this; } //method 8 division of bopttle objects public Bottle divide(Bottle bottle) { try{ if(this.noOfBottle/bottle.noOfBottle>=MIN) { this.noOfBottle=this.noOfBottle/bottle.noOfBottle; } else { System.out.println(\"Alert : Division reducing to possible MIN value \"); } }catch(Exception e) { System.out.println(\"/ By zero error\"); e.printStackTrace(); } return this; } //method 9 addition of int value to bottle noOfObject property public Bottle add(int a) { if(this.noOfBottle+a<=MAX) { this.noOfBottle=this.noOfBottle+a; } else { System.out.println(\"Alert : addition excedding the maximum number \"); } return this; } //method 10 subtraction of bottle noOfObject property public Bottle subtract(int a) { if(this.noOfBottle-a>=MIN) { this.noOfBottle=this.noOfBottle-a; } else { System.out.println(\"Alert : Subtraction reducing the bottle to below min range possible \"); } return this; } //method 11 multiplication of bottle noOfObject property public Bottle multiply(int a) { if(this.noOfBottle*a<=MAX) { this.noOfBottle=this.noOfBottle*a; } else { System.out.println(\"Alert : Multiplication exceeding MAX value \"); } return this; } //method 12 d of bottle noOfObject property public Bottle divide(int a) { try{ if(this.noOfBottle/a>=MIN) { this.noOfBottle=this.noOfBottle/a; } else { System.out.println(\"Alert : Division reducing below to possible MIN val.