Uploaded by KARTHIK NAIR

21AIE214

advertisement
21AIE214-Bigdata Analytics
Karthik G Nair
AM.EN. U4AIE21138
LAB ASSIGNMENT-3
1: Write a Scala Program using functions.
a. To search a particular element that is present in the array using the binary
search method.
Input
Output
b. To sort the given array elements in ascending order using bubble sort.
Input
Output
2. Write a program to show the use of the anonymous function and the closure in
Scala.
Input
Output
Download