//
// This program demonstrates procedural abstraction.
//
// The large main program has been divided up into smaller, easy to understand
// methods.   The main program itself is just a sequence of method calls that 
// are clear and easy to understand.
//
import java.util.*;
public class ProceduralAbstractionWithStubs
{ 
  public static Scanner input = new Scanner(System.in);
  
  // Precondition:  None
  // Postcondition: returns 1 if user wants to enter months
  //                returns 2 if user wants to enter days
  public static int getChoice()
  {
    return 0;
  }
  
  
  // Precondition:  None
  // Postcondition: Prompts user for number of months then computes # of years
  //                based on # of months input.  Returns this computation.
  public static double computeYearsFromMonths()
  {
    return 0;
  }
  
  // Precondition:  None
  // Postcondition: Prompts user for number of days then computes # of years
  //                based on # of days input.  Returns this computation.
  public static double computeYearsFromDays()
  {
    return 0;
  }
  
  // Precondition:  years - the number of years
  // Postcondition: Outputs years rounded UP to the nearest whole number
  public static void outputResults(double years)
  {
    System.out.println("STUB: Age in years is: 42" );
  }
  
  // Precondition:  None
  // Postcondition: Clears the screen
  public static void clearScreen()
  {
    System.out.println("Clearing Screen" );
  }
  
  // Precondition:  none
  // Postcondition: returns true if user wants to run program again  
  public static boolean askUserToRunAgain()
  {
    return true;
  }
 
  public static void main(String[] args)
  {
    int yORn;
    
    do
    { 
      double years=0;
      
      clearScreen();
      
      if (getChoice() == 1) 
      { 
        years = computeYearsFromMonths();
      }
      else 
      {
        years = computeYearsFromDays();
      }
      
      outputResults(years);
      
    } while (askUserToRunAgain());
    
  }
}




