Question: Your next step is to write your very own class. This class simulates a very simple meat thermometer. This type of thermometer in real life

 Your next step is to write your very own class. This
class simulates a very simple meat thermometer. This type of thermometer in

Your next step is to write your very own class. This class simulates a very simple meat thermometer. This type of thermometer in real life has a probe which is inserted into meat about to be roasted. You set a target temperature and put the meat into the oven with the probe inserted. When the internal temperature of the meat hits the target, a buzzer goes off. You will write a MeatThermomete class which keeps track of the current temperature of the meat as well as the targe temperature. Use the Timer class and the Lightbulb class as models. It will have the following methods: This constructor initializes the current temperature to the value passed in the parameter, and initializes the target temperature to 0 . public MeatThermometer (int temp) This sets the target temperature to the value passed in the parameter. public void setTargetTemp(int temp) This returns the value of the current temperature public int getCurrTemp() This returns the value of the target temperature public int getTargetTemp() This increases the current temperature by the amount passed in the parameter the target temperature is met or exceeded, a buzzer should go off (print out a buzzer message) public void increaseTemp(int amt) This decreases the current temperature by the amount passed in the paramete public void decreaseTemp (int amt) This returns true if the current temperature is equal to or greater than the target. and false otherwise public Boolean hasHitTarget()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!