Dibatalkan

scala super small assignment (5 hours estimate)

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 [url removed, login to view] 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 [url removed, login to view] package. The basic implementation of aggregate functions is written in Java and located at [url removed, login to view] 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 [url removed, login to view]), but feel free to do so if necessary or when you see room for improvement.

Kemahiran: Skala

Lihat lagi: \ Looking for personal assistant - need to be online 5 hours per day. 15-30 till 18-30 and \ , 5 hours, Data Entry Specialist for daily 5 hours, virtual assistant 5 hours per month, python web programming assignment 5 sequences strings tuples, python web programming assignment 5, modellini scala low cost max 5, 5 hours event photography rate, 1.5 hours in minutes, product entry in website daily 5 hours midnight, lightduty personal assistant work starting at 5 hours a week, design and develop my html5 banners in 5 hours maximum, assistance in assignment writing, assignment writing service in dubai, super small cms

Tentang Majikan:
( 0 ulasan ) Stockholm, Finland

ID Projek: #16750010