Code Monkey home page Code Monkey logo

java's Introduction

Calculating Estimated Completion date and time of a task.

Let say we are assigning different tasks to different Employees. Task1 to Employee1 Task2 to Employee2 .. TaskN to EmployeeN Each task takes different amount of time to complete, like 8 hours, 16 hours, 48 hours, 72 hours. Task1 takes H1 hours to complete. Task2 takes H2 hours to complete And so on. Each employee can work in different time table. Employee 1 working from 7 AM to 3 PM, Employee 2 working from 3 PM to 11 PM Employee 3 working from 11 PM to 7 AM and so ON

Employees might take leaves on certain days. Employee 1 is on Leave on 1 st December, 5 th December and 15 th December Employee 2 is on Leave on 3 rd December, 8 th December and 10 th December.

If we know the start time of the task, we need to calculate the end time of the task by considering Leaves, different working hours and time required to complete the task.

We need a program in java, where we have a function java: Where we pass: startTime = Caledar startTime of the task timeRequired = Integer noOfHours required to finish a task workingHourStart = the Start time of employee workingHourEnd = End time of employee List<Leaves> = All the dates when the employee is on leave. getEndTime(startTime, timeRequired, workingHoursStart, workingHourEnd, List<Leaves>) We need to return the end time when the task will be finished.

java's People

Contributors

rpruthvikashyap avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.