very difficult code - program

This is a discussion on very difficult code - program within the C Programming forums, part of the General Programming Boards category; hi everyone, i am facing a sitution, in developing an employee system. plz help me coding following problem, i have ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    2

    very difficult code - program

    hi everyone,

    i am facing a sitution, in developing an employee system. plz help me coding following problem, i have not been able to write a suitable code for it.

    An employee fills in a leave request, a record is created for the request. This request doc goes to his supervisor for approval. In case he does not reply within say 5 "working days", then his case is escalated to someone higher in the org. hierarchy. So we need to calculate the escalation period automatically, and writes to file appropriately.
    Then the system picks up all the unapproved requests, calculates the time elapsed (ie time since no action has been taken on the request), ...
    .and if its elapsed 5 "working days", it writes some text (say pending request) to a file. Now these working days can be Mon-Fri or Mon-Sat.


    this is the situation i am facing, but i am unable to code it properly,
    plz help me with a suitable code.

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    homework assignment?
    Woop?

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Lets break it down into its parts:
    1) Emplyee fills a leave request
    2) Record is created
    3) Request goes to the supervisor
    4) Supervisior can take action or not.
    5) If not and 5 days have elapsed move the record to someone higher
    6) Make a note on the request.

    Sounds like a good problem for some database programming

    Now which part do you have a problem with. And how far have you gotten?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with my morse code program
    By justin87 in forum C++ Programming
    Replies: 1
    Last Post: 10-21-2007, 05:23 PM
  2. Run A Program from within a cpp code
    By Hexxx in forum C++ Programming
    Replies: 6
    Last Post: 01-02-2006, 07:05 PM
  3. Need help on code to execute the program
    By hibmem10 in forum C++ Programming
    Replies: 6
    Last Post: 12-24-2005, 12:42 PM
  4. Can someone help me understand this example program
    By Guti14 in forum C Programming
    Replies: 6
    Last Post: 09-06-2004, 12:19 PM
  5. Please test my program: Code Black
    By PhoenixC++ in forum Windows Programming
    Replies: 15
    Last Post: 04-29-2004, 07:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21