import java.util.Scanner;

/**************************************
 *  describe this class here
 *
 * @author - Who are you?
 * @version - V? - date 
 *************************************/
public class CSCard 
{

   /********************************************
    * createStatement does the work of producing the
    * CC statement
    ********************************************/
   public void createStatement()
   {
   
      // add any needed constants here
      
      // variables
      Scanner keyboard;
      
      double priorBalance;
      double addtlCharges;
      double interest;
      double newBalance;
      double minPayment;
   
      // add any needed variables here
      
      keyboard = new Scanner(System.in);
      
      System.out.print("Type the balance: ");
      
      // make sure that the number entered is a double
      // and if so read it in.
      // if not remove the text from the input stream and then
      // use a default value of zero.  No error message to the user.
                     
      System.out.print("Type the new charge amount: ");
         
            
      // make sure that the number entered is a double
      // and if so read it in.
      // if not remove the text from the input stream and then
      // use a default value of zero.  No error message to the user
      // consider whether you want to make this a method?
      
      
      // Perform the calculation of interest, new balance and minimum payment
            
                     
      // Output the resulting statement (do not change)
      System.out.println("\n\nCS CARD International Statement");
      System.out.println("===============================");
      System.out.printf("Previous balance:   $%,8.2f\n", priorBalance);
      System.out.printf("Additional charges: $%,8.2f\n", addtlCharges);
      System.out.printf("Interest:           $%,8.2f\n\n", interest);
      System.out.printf("New balance:        $%,8.2f\n\n", newBalance);
      System.out.printf("Minimum payment:    $%,8.2f\n", minPayment);
   
   }
   
   /**
    *  calculateInterest - This method will take in the previous balance
    *  and additional charges and compute the amount of interest. 
    *  If the priorBalance is 0 or less, the interest is 0. 
    *  If there was a priorBalance, the interest is 2% of the priorBalance 
    *  plus the additional charges. 
    *
    * @param priorBalance The balance before the new charges are added
    * @param additionalCharges The charges added this month
    *
    * @return The amount of interest to charge
    */
    public double calculateInterest(double priorBalance, double additionalCharges)
    {
       // make me - first create a stub and get the input and output working, 
      // then create fill in the calculation
    }
    
    /**
    *  calculateMinPayment - This method will take in the previous balance
    *  and additional charges and compute the minimum payment.
    *  
    *       $0.00             for a new balance less than $0
    *    new balance          for a new balance between $0 and $49.99 (inclusive)
    *      $50.00             for a new balance between $50 and $300 (inclusive)
    * 20% of the new balance  for a new balance over $300
    *
    * @param balance The balance after interest and charges are added
    *
    * @return The minimum payment amount
    */
    public double calculateMinPayment(double balance)
    {
       // make me - first create a stub and get the input and output working, 
      // then fill in the calculation
    }

}