Skip to content

This program is a concise, scalable solution tailored for shift analysis, ensuring efficient employee management at Bluejay Delivery.

Notifications You must be signed in to change notification settings

mr-mudgal/Time-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Time-Card

This is an assignment for the job position of Software Development at Bluejay Delivery.

Question: Write a program that:

  1. Take the file as an input
  2. Iterates over the records in the file and prints the name and position of employees:
  • a. who has worked for 7 consecutive days.
  • b. who have less than 10 hours of time between shifts but greater than 1 hour
  • c. Who has worked for more than 14 hours in a single shift

Answer:

  1. Download the zip file / clone repository.
  2. Open terminal in the directory of the downloaded unzipped folder / cloned repository.
  3. Execute the main.py file by typing python3 main.py or other commands as per your system compatibility. {You can also run the file in any code editor / IDE}
  4. Select any option according to the answer you want as per a, b, c parts of the question.
  5. That's it.

Excel Format:

Snapshot of the Terminal:

-------------------------------------------------------
1. Employees worked for 7 consecutive days
2. Employees with gap in range 1 to 10 between shifts
3. Employees worked more than 14 hours in single shift
Q. Exit
: 1
Name: Sparks, KeWWeMh | Position ID: WFS000101
Name: SiWgh, JaspreeM | Position ID: WFS000424
Name: CEreira Jr, JEse | Position ID: WFS000456
Name: GAeWdia, JAaW CarXEs | Position ID: WFS000473

-------------------------------------------------------
1. Employees worked for 7 consecutive days
2. Employees with gap in range 1 to 10 between shifts
3. Employees worked more than 14 hours in single shift
Q. Exit
: 2
Name: CaMaXaWE, CeghaW | Position ID: WFS000153
Name: Xee, XaCar | Position ID: WFS000200
Name: De Xa Cerda, IgWaciE | Position ID: WFS000318
Name: CEreira Jr, JEse | Position ID: WFS000456
Name: DeXgadiXXE REdarMe, ChrisMiaW S | Position ID: WFS000523
Name: REdrigAez, GraWdEW AWgeX | Position ID: WFS000550

-------------------------------------------------------
1. Employees worked for 7 consecutive days
2. Employees with gap in range 1 to 10 between shifts
3. Employees worked more than 14 hours in single shift
Q. Exit
: 3
Name: DeXgadiXXE REdarMe, ChrisMiaW S| Position ID: WFS000523

-------------------------------------------------------
1. Employees worked for 7 consecutive days
2. Employees with gap in range 1 to 10 between shifts
3. Employees worked more than 14 hours in single shift
Q. Exit
: Q

Thank You


developed by:

About

This program is a concise, scalable solution tailored for shift analysis, ensuring efficient employee management at Bluejay Delivery.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages