Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Looking for a Point in the Right Direction

    So I have minimal programming experience. Last year I took a class on c++ programming. I transferred schools I just learned a small amount of HTML programming but minimal to say the least. I work for a golf course and we are purchasing a new point of sale system which does not have any sort of time clock system for employees to punch in and out and keep track of their hours and such. I am taking another class starting in January but they stuck me back in Intro to Programming so that won't give me the knowledge I am looking for here. I want to try and build a program for the time clock. End Game would be: have multiple employees punch in their code and system recognizes who it is, then they choose which position they are working as certain ones pay different even for the same employee (bartender working as waitress on seperate night). Would like the program to output the hours worked for each person and each position, and ideally calculate pay but if need be I can live without that and put the results in excel which I am quite capable of doing. My big problem off the top of my head is finding a way to make the system recognize that John punches in at 8:58am and punches out at 3:46pm which would be 6 Hours and 48 minutes or 6.80 hours. Looking for suggestions on a start. Done very little research so far but willing to learn on my own and just use this for help. Should I be thinking C, C++, HTML, CSS. Don't really know the advantages of each. Also, If you have any links or suggestions on how some of this could be done, especially the system recognizing time (Knowing that when John enters his code, it is 8:58am). Any hlep is appreciated.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,210
    Thanks
    75
    Thanked 4,343 Times in 4,309 Posts
    HTML with PHP, using a MySQL database, would do it nicely.

    The PHP code could then spit out the Excel spreadsheet for you to continue to do payroll.

    (For that matter, you could use Excel *AS* your database, but I would NOT recommend that.)

    PHP is another C-derivative language. Kind of like an interpretive C++. You should be able to pick up enough to do this task in a couple of weeks.

    C++ interface to the web is klunky at best. Would not go that route. (I am assuming you would like employees to be able to use any one of several computers on the in-house LAN to clock in and clock out.)
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    rotty1220 (12-13-2013)

  • #3
    New to the CF scene
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Okay thanks for the start. Is there any links or websites you would recommend so I can study up and at least get the basics figured out of PHP. Also, any specific program you recommend programming in? I have Visual Studio 2010 from my C++ Class but other than that I just have the usual microsoft office package and notepad. Ideally free software as I am a college student on a budget. Thanks again for the help

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,210
    Thanks
    75
    Thanked 4,343 Times in 4,309 Posts
    everything I mentioned is free.

    PHP, MySQL, HTML. And you can edit all of them pretty effectively with the free NotePad+.

    Or you *can* use Visual Studio for PHP and HTML. It doesn't understand PHP syntax, but even so it's an adequate editor for something this small.

    Places to start: http://www.php.net/ and http://www.w3schools.com/php/

    http://dev.mysql.com/doc/refman/5.5/en/index.html and esp. http://www.w3schools.com/php/php_mysql_intro.asp
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,927
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    If this is a serious application it makes no sense to try and code it yourself. Presumably you would not attempt to service or repair a machine or appliance without any experience or understanding of how it worked. Pay a professional to do the job properly.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •