public class Cookie { private int calories, minutes; private String name; private boolean isBought; static private int numCookies; public Cookie() { name = "Chocolate Chip cookie"; calories = 115; minutes = 15; isBought = false; numCookies++; } public Cookie(String n, int c, int m, boolean i) { name = n; calories = c; minutes = m; isBought=i; numCookies++; } //create all getters and setters for the private data fields (10 methods) //Create the toString method that will return either: //1) if it isn't storeBought - name takes minutes minutes to prepare and is calories calories //2) If it is storeBought - name is already prepared and is calories calories. //Create the calculateCost method that calculates the dietary cost of the cookie based on the formula described in the next method // The cost should be returned as an int. //Create the choose method that receives another Cookie object. This method will decide which //cookie to eat by calling each cookie's calculateCost method, which is based on the following formula: // 1. storeBought adds 10 // 2. homemade subtracts 10 // 3. add calories // 4. subtract minutes // 5. Add the length of the name of the cookie. (sugar cookie adds 12) // Output should state which cookie should be eaten (based on lower cost) and display the cost of each cookie //Sugar cookie cost is 75. //No-bake cookie cost is 58. //No-bake cookie is chosen. }