Skip to content

Kulibchenko/jv-salary-info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-salary-info

Implement method getSalaryInfo(String[] names, String[] data, String dateFrom, String dateTo). It should calculate salary for employees. As input you receive two arrays and two dates in String format.

  • Date represents limits that you should meet while calculation salary for employees (inclusively).
  • First array (names) contains names of employees you should calculate salary for.
  • Second array (data) contains info about their working hour during particular day and income per hour. Method should return info in the following format:
   Report for period #date_1# - #date_2#
   #Name of employee# - #money earned#

Here is sample of input data. Dates format:

   date from = `01.04.2019 `
   date to = `30.04.2019` 

names:

   John
   Andrew
   Kate

data:

  26.04.2019 John 4 50
  05.04.2019 Andrew 3 200
  10.04.2019 John 7 100
  22.04.2019 Kate 9 100
  25.06.2019 John 11 50
  26.04.2019 Andrew 3 150
  13.02.2019 John 7 100
  26.04.2019 Kate 9 100

Method execution result:

   Report for period 01.04.2019  - 30.04.2019  
   John - 900
   Andrew - 1050
   Kate - 1800

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%