title: Area Of The Circle That Has A Square And A Circle Inscribed In It
signature: func areaOfTheCircleThatHasASquareAndACircleInscribedInIt(a int) float64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual float64, expected float64) bool {
      return math.Abs(actual - expected) < 1e-09
  }
  
  func driver(a int, expected float64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(a),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(77, 4656.625710783471)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(18, 254.46900494077323)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(83, 5410.607947645021)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(39, 1194.5906065275187)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(68, 3631.6811075498013)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(28, 615.7521601035994)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(71, 3959.192141686537)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(14, 153.93804002589985)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(21, 346.36059005827474)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(73, 4185.386812745001)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(a):
      area = (((math.pi * a) * a) / 4)
      return area
source_cpp: float area_of_the_circle_that_has_a_square_and_a_circle_inscribed_in_it(int a) {
    float area = ( M_PI * a * a ) / 4.0;
    return area;
  }