The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 305 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
After a huge success selling our flower packs to local shops weâve acquired enough money to replace all of our items and had plenty left over to leave Alexander and Elizabeth so they can hire a doctor to travel in and hopefully help Elizabeth recover. Things have been happening very quickly and we havenât had much time to process what weâve accomplished, so hereâs a little recap of everything weâve done since we started our journey.
*This list does not include information or tasks specific to labs
Â
Several days after weâve left and continued the journey we began so long ago we come to another small town that looks like a great place to stay for the night. The first thing we do, and have always done, is look for an inn. After we find what looks like the best inn weâve ever seen and reserve our room we head to the tavern to socialize and hopefully find someone who catches our eye. After sitting at the bar for a bit a nice older lady comes up to us and starts a simple conversation. During this, we discover she is the owner of the small flower shop on the corner (what are the chances!). We politely tell her about the system weâve developed, but sadly she isnât interested. The bartender overhears our conversation and when the lady leaves he comes over to ask us more about our system.
Â
The next morning we wake up in our room and look to our night stand where there is a candle that apparently burned the entire night and is hanging on to the last bit of light it can produce. Below the candle we notice a contract with what could only be construed as our signature on the bottom. What did we agree to last night??
Â
After reading the contract it appears weâve agreed to create a flower pack for the bartender to use. The bartender hopes to take our system, make copies and sell as many as he can to rebuild the home he lost in a fire a long time ago. There is a drawing on the first page with what appears to be some sort of interface, but it canât be interpreted in any meaningful way.
Â
Hereâs our task for the week, since violating a contract results in death, we have no option but to finish.
Â
Â
Â
My hope is that you can help me figure out where I have gone wrong and help fix it, because my herb and flower classes are not w
/**
 *CSC 275 Midterm part3
 * Breda Elmore
 */
public class Flower extends Plant{
   private boolean isPoisonous;
   public Flower(String flowerColor, String flowerID, String flowerName, String theScent, boolean isThorny) {
       super(flowerColor, flowerID, flowerName);
       this.isPoisonous = isPoisonous;
   }
   public void setIsPoisonous(boolean isPoisonous) {
       this.isPoisonous = isPoisonous;
   }
   public boolean getIsPoisonous(){
       return isPoisonous;
   }
   public void setIsThorny(boolean isThorny) {
       this.isThorny = isThorny;
   }
   public boolean getIsThorny(){
       return isThorny;
   }
   public String toString() {
       return "This flower as sampled is " + this.getColor() + " in color " + " with an ID of " + this.getID() +
               " and a name of " + this.getName() + " and it's thorny = " + this.getIsThorny();
   }
   @Override
   public boolean equals(Object otherFlower) {
       if (otherFlower == null) {
           return false;
       }
       if (!Fungus.class.isAssignableFrom(otherFlower.getClass())) {
           return false;
       }
       Flower other = (Flower) otherFlower;
       if (!(this.getColor().equals(other.getColor()))) {
           return false;
       }
       if (!(this.getID().equals(other.getID()))) {
           return false;
       }
       if (!(this.getName().equals(other.getName()))) {
           return false;
       }
       if (this.isThorny != other.isThorny) {
           return false;
       }
       return true;
   }
}
orking right.
/**
 *CSC 275 Midterm part4
 * Breda Elmore
 */
public class Fungus extends Plant{
   private boolean isPoisonous;
   public Fungus(String fungusColor, String fungusID, String fungusName, boolean isPoisonous) {
       super(fungusColor, fungusID, fungusName);
       this.isPoisonous = isPoisonous;
   }
   public void setIsPoisonous(boolean isPoisonous) {
       this.isPoisonous = isPoisonous;
   }
   public boolean getIsPoisonous(){
       return isPoisonous;
   }
   public String toString() {
       return "This fungus as sampled is " + this.getColor() + " in color " + " with an ID of " + this.getID() +
               " and a name of " + this.getName() + " and it's poisonous = " + this.getIsPoisonous();
   }
   @Override
   public boolean equals(Object otherFungus) {
       if (otherFungus == null) {
           return false;
       }
       if (!Fungus.class.isAssignableFrom(otherFungus.getClass())) {
           return false;
       }
       Fungus other = (Fungus) otherFungus;
       if (!(this.getColor().equals(other.getColor()))) {
           return false;
       }
       if (!(this.getID().equals(other.getID()))) {
           return false;
       }
       if (!(this.getName().equals(other.getName()))) {
           return false;
       }
       if (this.isPoisonous != other.isPoisonous) {
           return false;
       }
       return true;
   }
}/**
 * Created by breda.elmore on 4/24/2017.
 */
   public class Herb extends Plant {
   private boolean isPoisonous;
   public Herb(String herbColor, String herbID, String herbName, String isGreatFlavor, boolean isMedicinal, boolean isItSeasonal) {
      super(herbColor, herbID, herbName);
       this.isItSeasonal = isItSeasonal;
       this.isMedicinal = isMedicinal;
       this.isGreatFlavor = isGreatFlavor;
}
   public void setGreatFlavor(String isGreatFlavor) {
       this.isGreatFlavor = isGreatFlavor;
   }
   public String getIsGreatFlavor() {
       return isGreatFlavor;
   }
   public void setIsMedicinal(boolean isMedicinal) {
       this.isMedicinal = isMedicinal;
   }
   public boolean getIsMedicinal() {
       return isMedicinal;
   }
   public boolean getIsItSeasonal() {
       return isItSeasonal;
   }
   public String toString() {
       return "This herb is of " + this.getColor() + " color and is called " + this.getName() +
               " with an ID of " + this.getID() + " it is edible = " + this.getIsGreatFlavor() + " and it is Seasonal " + this.getIsItSeasonal() +
               " and it is medicinal " + this.getIsMedicinal();
   }
   @Override
   public boolean equals(Object otherWeed) {
       if (otherWeed == null) {
           return false;
       }
       if (!(Weed.class.isAssignableFrom(otherWeed.getClass()))) {
           return false;
       }
       Weed other = (Weed) otherWeed;
       if (!(this.getID().equals(other.getID()))) {
           return false;
       }
       if (!(this.getName().equals(other.getName()))) {
           return false;
       }
       if (!(this.getColor().equals(other.getColor()))) {
           return false;
       }
       if (this.isEdible != other.isEdible) {
           return false;
       }
       if (this.isMedicinal != other.isMedicinal) {
           return false;
       }
       if (this.isPoisonous != other.isPoisonous) {
           return false;
       }
       return true;
   }
/**
 *CSC 275 Midterm part5
 * Breda Elmore
 */
import java.util.*;
public class Weed extends Plant {
   private boolean isEdible, isMedicinal, isPoisonous;
   public Weed(String weedColor, String weedID, String weedName, boolean isEdible, boolean isMedicinal, boolean isPoisonous) {
       super(weedColor, weedID, weedName);
       this.isEdible = isEdible;
       this.isMedicinal = isMedicinal;
       this.isPoisonous = isPoisonous;
   }
   public void setIsEdible(boolean isEdible) {
       this.isEdible = isEdible;
   }
   public boolean getIsEdible() {
       return isEdible;
   }
   public void setIsMedicinal(boolean isMedicinal) {
       this.isMedicinal = isMedicinal;
   }
   public boolean getIsMedicinal() {
       return isMedicinal;
   }
   public void setIsPoisonous(boolean isPoisonous) {
       this.isPoisonous = isPoisonous;
   }
   public boolean getIsPoisonous() {
       return isPoisonous;
   }
   public String toString() {
       return "This weed is of " + this.getColor() + " color and is called " + this.getName() +
               " with an ID of " + this.getID() + " it is edible = " + this.getIsEdible() + " and it is Poisonous " + this.getIsPoisonous() +
               " and it is medicinal " + this.getIsMedicinal();
   }
   @Override
   public boolean equals(Object otherWeed) {
       if (otherWeed == null) {
           return false;
       }
       if (!(Weed.class.isAssignableFrom(otherWeed.getClass()))) {
           return false;
       }
       Weed other = (Weed) otherWeed;
       if (!(this.getID().equals(other.getID()))) {
           return false;
       }
       if (!(this.getName().equals(other.getName()))) {
           return false;
       }
       if (!(this.getColor().equals(other.getColor()))) {
           return false;
       }
       if (this.isEdible != other.isEdible) {
           return false;
       }
       if (this.isMedicinal != other.isMedicinal) {
           return false;
       }
       if (this.isPoisonous != other.isPoisonous) {
           return false;
       }
       return true;
   }
}
}
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly