The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Functional Programming Assignment
Given the following list of integer values:
val values = List(1.0, -10.0, 3.0, 20.0, 53.0, -8.0, 25.0)
1. Write the Scala code to calculate the mean
2. Write the Scala code to calculate the mean of square valuesÂ
3. Write the Scala code to calculate the standard deviation on these pointsÂ
Please, submit the following:
        1. The Scala code
        2. The output generated by the code
Please see attached as well
Â
Functional Programming – Assignment*Given the following list of valuesval values = List(1.0, -10.0, 3.0, 20.0, 53.0, -8.0, 25.0)1.Write the Scala code that produce the mean2.Write a function that calculate the mean of the squaresσ °2±3.Write a function that calculates the standard deviation of the points(standard deviation is defined asΣ =σ(°²−³)2±)*For this assignment you must have installed the Spark Shell