Scala unifying functional and object-oriented programming A functional language has these characteristics: • Functional programs are made up of functions. • A function always returns a value. • A function, given the same inputs, will return the same va…