Write some Software

Closed Posted 6 years ago Paid on delivery
Closed 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.)

Java Scala

Project ID: #14716110

About the project

16 proposals Remote project Active 6 years ago

16 freelancers are bidding on average $140 for this job

srinichal

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

$266 USD in 5 days
(22 Reviews)
5.5
panjvirsingh

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

$155 USD in 3 days
(33 Reviews)
4.8
makrazhamza

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

$111 USD in 7 days
(1 Review)
2.5
abhi742

A proposal has not yet been provided

$98 USD in 10 days
(1 Review)
2.2
zang3tsu

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

$96 USD in 3 days
(0 Reviews)
0.0
jgrnkr

A proposal has not yet been provided

$137 USD in 5 days
(0 Reviews)
0.0
steveano3

Will produce a multithreaded system, probably using akka as it mentions the receive method in the project spec. Relevant Skills and Experience I made a system which uses akka and scala futures to perform over a millio More

$177 USD in 3 days
(0 Reviews)
0.0