CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Krrish1

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: need help my (employee payroll program using structures)does not show all data

    yes it works thank you for all you help
  2. Re: need help my (employee payroll program using structures)does not show all data

    :)thanks everyone
  3. Re: need help my (employee payroll program using structures)does not show all data

    :wave:FIRSTLY A BIG THANK YOU TO U @2kaud and the others for helping me.
    HERE IS MY UPDATED CODE , but there is one problem it is off by 1 penny in total gross pay

    #include <iostream>
    #include...
  4. Re: need help my (employee payroll program using structures)does not show all data

    this is what i have:

    int writeReport(payrollStruct emp[],int numE) //writes report and shows payroll information
    {
    int i; // counter
    double totalgrosspay = 0;
    ofstream outputFile;...
  5. Re: need help my (employee payroll program using structures)does not show all data

    I tried but now it's gives only zero dollars I will post the code once I get home
  6. Re: need help my (employee payroll program using structures)does not show all data

    Ok just tell me how to start I take over.
  7. Re: need help my (employee payroll program using structures)does not show all data

    i still dont get it as i said before im a beginner in c++
    please help how to fix the code
  8. Re: need help my (employee payroll program using structures)does not show all data

    Here is my updated code ( where there is bold sentence that sentence has been updated)

    #include <iostream>
    #include <cstdio>
    #include <fstream>
    #include <string>
    #include <iomanip>
    #include...
  9. Re: need help my (employee payroll program using structures)does not show all data

    I don't know what to do, so confused:
    An example would help what is wanted to get that result
  10. Re: need help my (employee payroll program using structures)does not show all data

    need help
  11. Re: need help my (employee payroll program using structures)does not show all data

    Because what I'm doing in my writeReport function:

    double totalgross, totgrosspay;
    totgrosspay = (emp[i].hoursworked * emp[i].hourly rate);
    totalgross = totgrosspay;

    and what does this...
  12. Re: need help my (employee payroll program using structures)does not show all data

    Because what I'm doing in my writeReport function:
    double totalgross, totgrosspay;
    totgrosspay = (emp[i].hoursworked * emp[i].hourly rate);
    totalgross = totgrosspay;
  13. Re: need help my (employee payroll program using structures)does not show all data

    how to calculate total of gross pay only, can you show an example
  14. Re: need help my (employee payroll program using structures)does not show all data

    unfortunately, i wasn't able to save it, i need to make an array of structures in main to allow you to do the math for each employee. and how to calculate total of gross pay only.( can you show an...
  15. Re: need help my (employee payroll program using structures)does not show all data

    i need to make an array of structures in main to allow you to do the math for each employee. and how to calculate total of gross pay only.
  16. Re: need help my (employee payroll program using structures)does not show all data

    Make an array of structures in main to allow you to do the math for each employee. and how to calculate total of gross pay only.
  17. Re: need help my (employee payroll program using structures)does not show all data

    Can you show an example. I tried my c++ tutor's method but it didn't worked
  18. Re: need help my (employee payroll program using structures)does not show all data

    Can you show an example. I tried my c++ method but it didn't worked
  19. Re: need help my (employee payroll program using structures)does not show all data

    :wave:@ 2kaud, i have update my code and it running fine , thanks to you and other people who helped
    and i need only one help == HOW TO CALCULATE TOTAL OF GROSS PAY ONLY (WHERE IN MY PROGRAM SAYS...
  20. Re: need help my (employee payroll program using structures)does not show all data

    thank you for ur help...u should be a tutor..:wave:
    after im done ill upload the updated code
  21. Re: need help my (employee payroll program using structures)does not show all data

    I'm confused like the one I did for regular pay u mean like that and do we have call each calculation function in main and in writeReport function
  22. Re: need help my (employee payroll program using structures)does not show all data

    so.. correct me if im wrong i followed ur example
    void findregularhours(payrollStruct emp[], //int regularhours[]//, int n)
    {
    for(int i=0; i<n; i++)
    {
    if(emp[i].hoursworked > 40) ...
  23. Re: need help my (employee payroll program using structures)does not show all data

    can you show regularpay as an example
  24. Re: need help my (employee payroll program using structures)does not show all data

    THAT WAS THE PART I UPDATED and also can i get help on how to calculate only gross pay
    HERE IS THE FULL VERSION OF THE CODE:

    #include <iostream>
    #include <cstdio>
    #include <fstream>
    #include...
  25. Re: need help my (employee payroll program using structures)does not show all data

    Now my program runs when i vomment out the following:
    cout << setw(13) << fixed << left << emp[i].lastname << " " <<setw(12) << emp[i].firstname << " ";
    cout << setw(11) << emp[i].empID << " " <<...
Results 1 to 25 of 49
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured