title: Program Print Sum Given Nth Term 1
signature: def programPrintSumGivenNthTerm1(n: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Float , expected: Float): Boolean = {
      (actual - expected).abs < 1e-06F
  }
  
  def driver(n: Int, expected: Float): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        42, 
        1764.0F    
      )}")   
  
  
      println(s"TEST-1...${driver(
        40, 
        1600.0F    
      )}")   
  
  
      println(s"TEST-2...${driver(
        67, 
        4489.0F    
      )}")   
  
  
      println(s"TEST-3...${driver(
        73, 
        5329.0F    
      )}")   
  
  
      println(s"TEST-4...${driver(
        18, 
        324.0F    
      )}")   
  
  
      println(s"TEST-5...${driver(
        16, 
        256.0F    
      )}")   
  
  
      println(s"TEST-6...${driver(
        74, 
        5476.0F    
      )}")   
  
  
      println(s"TEST-7...${driver(
        33, 
        1089.0F    
      )}")   
  
  
      println(s"TEST-8...${driver(
        92, 
        8464.0F    
      )}")   
  
  
      println(s"TEST-9...${driver(
        22, 
        484.0F    
      )}")   
  
  }
  
source_py: def program_print_sum_given_nth_term_1(n):
      return math.pow(n, 2)
source_cpp: int program_print_sum_given_nth_term_1(long n) {
    return pow ( n, 2 );
  }