Question: do hands-on exercises on Scala programming language and Scala functions. From knowledge gained, perform the following tasks. 1. Explain what is the reason for the

do hands-on exercises on Scala programming language and Scala functions.

From knowledge gained, perform the following tasks.

1. Explain what is the reason for the upper limit of 100X improvement in speed often cited for Apache Spark? In what cases do you see such improvements? Please explain this concept in your own words (ie dont google and then paste an explanation verbatim from the web this is considered plagiarism). If you will be using external references, please cite them but the explanation for this is given in class.

2. Using Scala, write a class of your choice (not the Employee class that was discussed in class). Include your name in this class so it is identifiable. Example: CarsSaber The class must have at least two (2) fields and two methods/functions. Create two instances (objects) of this class in the main. Using the object created, print the fields and call the method/function at least once. Provide the code (textfile) and a screenshot of your output with the code (on Scastie).

3. Create another class and write at least 2 functions where at least one function is a higher order function ie this function takes a function as a parameter. Your higher order function should do something useful as demonstrated in the class example. Dont just create a higher order function that take in a function as a parameter but does nothing with the input or does something trivial.

4. Explain in you own word why higher order functions are more efficient in a Big Data setting than just having the function as a method within an class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!