//------------------------------------------------------------
// Main comment block
//
// Notes to the student:
// 1. Comments containing square braces are to be replaced by
//    your own comments in a simple yet readable format
//    of your choosing.
// 2. Comments contain labels should be filled in with
//    the necessary information in the format provided.
//------------------------------------------------------------

/*
* Program name: [Place program name here]
*
* Student name: [Place your name here]
* Course: [Place name of course here]
* Instructor: [Place name of instructor here]
* Date: __DATE__ __TIME__
*
* Program requirements: [Place program
*   requirements here]
*
* Items you want me know before I grade your program:
* [Place important information here]
*/

//------------------------------------------------
// import statments
// - place any required import statements below
//   this comment block.
// Example:
// import java.text.DecimalFormat;
// import javax.swing.JOptionPane;
//------------------------------------------------

//------------------------------------------------------------
// Class comment header block
//------------------------------------------------------------
/**
* [In this comment block describe the class as you have implemented it]
*/
public class __NAME__ {

    //----------------------------------------------------------
    // Declare all class data members, i.e.,
    // variables and constants here. Remember unless you have
    // a valid reason, all variables and constants are declared
    // using the the private visibility modifier. Also
    // remember to use self-describing names. All variables
    // should start with a lower case letter and then use an
    // upper case letter to indicate the start of a second word,
    // i.e, numberOfApples. All constants should be named using
    // all capital letters with underscores in place of
    // normal 'spaces' between the words in the name, i.e.,
    // FEET_PER_METER.
    // Examples:
    // private int bagsOfCoffee;
    // private int numberBoxesRequired;
    // private double coffeeCost;
    // private final double PRICE_PER_BAG = 5.47;
    // private final int BAGS_PER_BOX = 10;
    //----------------------------------------------------------


    //----------------------------------------------------------
    // Default constructor
    // Remember to initialize all class data members in the
    // constructor.
	//----------------------------------------------------------
    public __NAME__() {
        // Example:
	// bagsOfCoffee = 0;
	// numberBoxesRequired = 0;
 	// coffeeCost = 0.0;
    }

    //----------------------------------------------------------
    // You must create at least least one method using the
    // public visibility modifier. This method will contain the
    // necessary statements to satisfiy the program requirements.
    // This method is the main controller for this class.
    // In general this method will functionally have three main
    // parts:
    // 1. Get the necessary input
    // 2. Perform the necesary calculations with this input
    // 3. Format and display the output
    //----------------------------------------------------------
    /**
     * [Describe the method design and purpose]
     */
    public void programControllerMethod() {
	//--------------------------------------------------------
        // place all your local variable and constant
       	// declarations here
	//--------------------------------------------------------


	//--------------------------------------------------------
	// place all your assignment and control statements
	// here.
	// Example:
	// 1. Get the necessary input
	// getNumberBagsFromUser();
	// 2. Perform the necessary calculations with this input
	// calculateBoxesRequired();
	// calculateCoffeeCost();
	// 3. Format and display the output
	// displayCalculations();
	//--------------------------------------------------------

    }
	
    //----------------------------------------------------------
    // You may create other support type methods here using the
    // private visibility modifier. These methods should be
    // very short with a single specific purpose.
    // Example:
    /**
     * Prompt the user for the number of coffes bags desired and
     * then convert the input to an integer and assign to the class
     * data member bagsOfCoffee.
     */
    // private void getNumberBagsFromUser() {
    //   String inputString = JOptionPane.showInputDialog(null, "How many bags of coffee would you like?");
    //   bagsOfCoffee = Integer.parseInt(inputString);
    // }

    /**
     * Calculate the number of boxes required for this order.
     * Use a technique called half-rounding where you add 1 less than
     * half a full box to the number of coffee bags and then using
     * integer division on that sum. Aassign to the class
     * data member numberBoxesRequired.
     */
    // private void calculateBoxesRequired() {
    //   numberBoxesRequired = (bagsOfCoffee + (BAGS_PER_BOX / 2 - 1)) / BAGS_PER_BOX;
    // }

    /**
     * Calculate the total cost of the coffee and assign to the class
     * data member coffeeCost.
     */
    // private void calculateCoffeeCost() {
    //   coffeeCost = bagsOfCoffee * PRICE_PER_BAG;
    // }
    
    /**
     * Format and output the number of bags ordered,
     * the number of boxes required and the total cost.
     */
    // private void displayCalculations()
    // {
    // 	DecimalFormat df = new DecimalFormat("0.00");
    // 	System.out.println("You ordered " + bagsOfCoffee + " bags");
    // 	System.out.println("Your order will be shipped in " + numberBoxesRequired + " boxes");
    // 	System.out.println("Your order will cost $ " + df.format(coffeeCost));
    // }

    //----------------------------------------------------------

    //---------------------------------------------------------
    // public static main method header comment block
    //---------------------------------------------------------
    /**
     * [Describe the purpose and your design of the main method]
     */
    public static void main(String[] args)	{
        __NAME__ program = new __NAME__();
        program.programControllerMethod();

	//--------------------------------------------------------
        // required last / closing statement
	//--------------------------------------------------------
        System.exit(0);
    }
}
