Find Jobs
Hire Freelancers

scala super small assignment (5 hours estimate)

€8-30 EUR

Imeghairiwa
Imechapishwa almost 6 years ago

€8-30 EUR

Kulipwa wakati wa kufikishwa
Aggregate Service Aggregate service is a simple REST service implemented with Spray which provides sum, mean and max functionality for different numeric types. The service accepts only POST requests with a JSON payload as follows: Request: json { "function": "sum", "values": "12.0, 13.00, 23.42", "valueType": "double" } Response: json { "result": "48.42" } How to run the server: sbt run => Starts the server at localhost:9090 How to change the default host or port: This can be done by changing the default values for the host and port in the [login to view URL] file. Assignment In the given sbt project the code responsible to start the server, receive messages and send the response back, together with marshalling and unmarshalling of messages is written in Scala and located in the [login to view URL] package. The basic implementation of aggregate functions is written in Java and located at [login to view URL] package. At the moment only the sum function is implemented. We would like you to: Convert all Java code to Scala. Implement the remaining aggregate functions for the given types. Add support for BigDecimal type. Add the tests you see fit to show the functionality works as intended, also in Scala, for all aggregate functionality. We encourage you to make changes to the aggregate functionality to improve the quality/readability of the code. We don't expect you to make changes in the server code (except for adding support for the BigDecimal type in the doAggregate function of [login to view URL]), but feel free to do so if necessary or when you see room for improvement.
Kitambulisho cha mradi: 16750010

Kuhusu mradi

Mradi wa mbali
Inatumika 6 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi

Kuhusu mteja

Bedera ya FINLAND
Stockholm, Finland
0.0
0
Mwanachama tangu Mei 29, 2014

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.