Question
-Has to be able lose, gain, monitor weight
-Has to be able to do things that show he is jolly
-Has to keep a list of things that people want
-Has to be able to tell who is naughty or nice
-Has to produce a present given a person's name by checking whether they are naughty or nice and the list of things they want
Solution Preview
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.
import java.util.ArrayList;public class Santa {
private int weight;
private ArrayList<String> sayings;
private ArrayList<People> theList;
public Santa()
{
weight = 200;
sayings = new ArrayList<String>();
theList = new ArrayList<People>();
}
public void setList(ArrayList<People> list)
{
theList = list;
}
public void addSaying (String sayings) //Santa says
{
this.sayings.add(sayings);...
By purchasing this solution you'll be able to access the following files:
Santa.java and SantaTester.java.