[solved]-1 Type Variables B C D Would Print B D Explain Answers Func Averagevalues Double Double Va Q39041364

1) What is the type for variables a, b, c and d and what would print out for b and d? Explain your answers. func average_values: [Double]) -> Double { var total = 0.0 for value in values { total += value return Double(total) / Double(values.count) let values – (50.0, 25.0, 100.0, 25.0] let a – average let b – a(values) let c: (Double) -> String = { (value: Double) -> String in return “Average: ” + String(value) let d = c(b) Show transcribed image text 1) What is the type for variables a, b, c and d and what would print out for b and d? Explain your answers. func average_values: [Double]) -> Double { var total = 0.0 for value in values { total += value return Double(total) / Double(values.count) let values – (50.0, 25.0, 100.0, 25.0] let a – average let b – a(values) let c: (Double) -> String = { (value: Double) -> String in return “Average: ” + String(value) let d = c(b)
Expert Answer
Answer to 1) What is the type for variables a, b, c and d and what would print out for b and d? Explain your answers. func average… . . .
OR

