/* * Wrapper.java * *You should not change the signatures of any methods mentioned in the starter code * (i.e., method names, return types, parameters). * * Created on April 13, 2003, 5:52 PM */ /** A "wrapper" could be a machine or a person who knows how to wrap a bar of soap, given a piece of paper. * */ public class Wrapper { /** Creates a new instance of a Wrapper */ public Wrapper() { } /** Wrap the bar of soap, if possible. If the dimensions of the paper are * large enough, and the bar is not already wrapped, cut the paper * (which changes its dimensions) and wrap the soap (i.e., mark it wrapped). * The amount of paper needed to wrap is determined as follows: one dimension * of the wrapping paper should be equal to two times the length plus height * of the soap. The other dimension of the paper should be equal to * two times the width plus height of the soap. * @return true if the wrapping was possible (and therefore was done); false * otherwise. */ //public boolean wrap(SoapBar bar, Paper paper) { //end class }