Write some Software
$30-250 USD
Paid on delivery
a programming language called Scala, which is supported by Java and
allows distributed programming applications to be seamlessly developed in Java/Scala without the
concern of how to implement threads and multithreading. Any threading requirements are automatically
managed by the Scala architecture. In each of the three weeks a practical class will explore example usage
of Scala and three exercises will be set that require you to extend the development of those practical
exercises.
Exercise 1: A distributed calculation of Pi
Modify the Pi example described in class to:
a) display the message “I received part of the result!”, followed by the total number of results
received to far, each time a worker returns its result to the master.
b) have every Worker display the time it has taken to calculate its portion of the end Pi result.
Exercise 2: Optimising distributed data management
Extend the Remote example to:
a) include a “Track” case in the “active” method of the “Sender” class. This new case would be
responsible with keeping track (count) of how many times the status was printed to screen and it
should be used in the “c @ Continue” case of the same “active” method (within the first “if”
statement of the “c @ Continue” case). The “Done” case of the same “active” method should also
use this new counter when displaying the summary.
b) use an array ('Map') instead of 4 single 'val' items (remotePath, totalMessages, burstSize,
payloadSize) for keeping track of and accessing the Sender settings. (Note: There are several
locations within the code which need altering, search carefully.)
Exercise 3: Extending distributed object functionality
Modify the Supervision example by adding two more cases to the “Child” class' “receive” method. The
two cases should:
a) store the values of two arbitrary strings (“str1”, “str2”) within the “Child” class.
b) calculate and print the Sum of the lengths of the two strings. (Note: Look at how the “state”
variable is used.)
c) make the “child” object crash through an exception triggered by one of the two new methods by
following the pattern present within the “CommenceOperations” case of the “receive” method of
the “Supervisor” class. (Note: Look at Exception handling when the data types of the parameters
and arguments are incompatible.)
Project ID: #14716110
About the project
16 freelancers are bidding on average $140 for this job
I am an expert in delivering custom scripts and projects Relevant Skills and Experience proven track record on this site Proposed Milestones $266 USD - milestone
I would like to offer myself a probable candidate assignment as I am confident of delivering quality output. I have 7 years of IT experience in window application,website design and developments Relevant Skills and More
Hello sir! I've just seen your job offer and because of my skills in web design/development I'm pretty sure that I'm able to make it done with the best quality and price! Relevant Skills and Experience Hello sir! I've More
I have experience in developing for Scala Relevant Skills and Experience Scala, Functional Programming Proposed Milestones $32 USD - Exercise 1 $32 USD - Exercise 2 $32 USD - Exercise 3