/**
 * Example for test case coverage.
 * This is based off of Codingbat.com example Logic-1 cigarParty.
 * When squirrels get together for a party, they like to have sodas. 
 * A squirrel party is successful when the number of sodas is between 
 * 40 and 60, inclusive. Unless it is the weekend, in which case there 
 * is no upper bound on the number of sodas. Return true if the party 
 * with the given values is successful, or false otherwise.
 *
 * @author Alvin Chao
 * @version 10-2-19
 * I have abided by the JMU Honor Code.
 */
 
public class Example {

    /** 
     * sodaParty - a problem to determine # of sodas
     * at a party.
     * @param sodas # of sodas for party.
     * @param isWeekend boolean to tell if weekend or not.
     * @return boolean  true if successful party false if not.
     * 
     */
     
    public static boolean sodaParty(int sodas, boolean isWeekend) {
        boolean partyGood = false;
        int upperbound = 60;
        int lowerbound = 40;
        if (isWeekend) {
            upperbound = 9999;
        }
        if (isWeekend) {
            if (sodas >= 40) {
                partyGood =  true;
            }
        }
        else if (sodas >= 40 && sodas <= 60) {
            partyGood =  true;
        }
        return partyGood;   
    }

}
