File Category Processor

İptal Edildi İlan edilme: 5 yıl önce Teslim sırasında ödenir
İptal Edildi Teslim sırasında ödenir

Code has to be written as per requirement :

As a general requirement: Please make sure I can execute the code on my local machine, i.e. please provide all required dependencies and installation documentation or a ready to use build configuration, e.g. a maven pom.xml.

Please write a program that reads file [login to view URL] which you find [WRITTEN BELOW ****]

In this file you’ll find lines containing categories and data. The categories are “ANIMALS” and “NUMBERS”.

Please note that categories are fix values, i.e. they are NOT determined by being written upper case.

Each line following a category represents data items that belong to the previously read category (unless the new line represents a category itself)

After reading and processing the file please output to the system console:

A sorted list of all unique data items of category “ANIMALS”, i.e.

ANIMALS:

cow

horse

moose

sheep

A list of all unique data items of category “NUMBERS”, followed by “: “ and the number of occurrences of the respective data item

Provide Unit tests for your code.

Please make sure you have correctly implemented code for categories NUMBERS and ANIMALS.

Now, as a Change Request, you are to add functionality to your program that allows for processing a new category called "CARS"

Read & process file "[login to view URL]“ which contains category, "CARS“, as well as NUMBERS and ANIMALS.

Data items are case insensitive, i.e. OPEL and Opel represent 1 unique data item

Output the data for categories "ANIMALS" and "NUMBERS" as described in Level 1.

Additionally, output the unique data items of category “CARS” as a backwards sorted list, each item written in lower case.

Each data item output shall be followed by the item’s MD5 hash written in brackets.

Hint: using [login to view URL] from commons-codec (or a similar library) for creating the hash is perfectly legal.

I.e. the expected output for CARS shall be:

CARS:

vw (7336a2c49b0045fa1340bf899f785e70)

opel (f65b7d39472c52142ea2f4ea5e115d59)

bmw (71913f59e458e026d6609cdb5a7cc53d)

audi (4d9fa555e7c23996e99f1fb0e286aea8)

INPUT

=======

*******************************************************************************************************

1) Make sure the input file is read and processed only once (as if the file was large and expensive to process).

2) Do not use if/else, switch/case or Ternary Operations in your code.

3)The code should be written in a way that allows for adding more new categories (that might have even different logic and output formatting) without changing the existing code base (open closed principle).

4) Make sure to provide test cases

5) Need best-in class code (as per checkstyle and SONAR), as we have already implemented the code, but need best in-class code.

6) Code has to be done by today itself(13/06/2018).

7) Fixed budget.

8) Money to be paid only after review of successful written and executed code.[Please Note this carefully].

9) Code to be built on maven and Java 8/9

10) Need professional level of code ONLY!!!!

Input

=====

NUMBERS

one

three

two

one

three

ANIMALS

sheep

horse

cow

horse

NUMBERS

seven

ANIMALS

NUMBERS

six

six

ANIMALS

moose

CARS

AUDI

BMW

Audi

VW

OPEL

Opel

Java Yazılım Mimarisi Windows Masaüstü

Proje NO: #17166330

Proje hakkında

2 teklif Uzak proje Aktif 5 yıl önce

Seçilen:

indika25811

Hi, I'm an experienced java developer and I'm very good in core java, data structures, maven, etc. I'll do it in good quality with perfect code. Kind regards, Indika

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% INR
(13 Değerlendirme)
5.4