En cours

File Category Processor (JAVA-8/9)

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

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

Compétences : Java

en voir plus : compatibility guide for jdk 9, java 8 and java 9 features, what happened to java 9, java 9 documentation, java 9 roadmap, java 9, java 9 migration, java 9 release notes, time taken send file destination using java code, vba code data csv file, source code file tracking system java, source code convert pdf file convert text java, read data file put linkedlist java, java mobile application send data file server, java code data mail server, java code data gprs, importing data csv file sql server java, import data csv file mysql jsp java, file write completey java code, send file via bluetooth java code

Concernant l'employeur :
( 0 commentaires ) New Delhi, India

Nº du projet : #17159343

Décerné à:

bharatchhajer

I have over 10 years of experience in Java. If you need the code by today, please make sure you get the work started sometime in the morning. As quality needs time.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% INR en 1 jour
(2 Commentaires)
1.5

3 freelance font une offre moyenne de ₹1167 pour ce travail

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% INR en 5 jours
(0 Commentaires)
0.0
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% INR en 1 jour
(0 Commentaires)
0.0