Search:
Type: Posts; User: Krrish1
Search:
Search took 0.03 seconds.
-
December 15th, 2013, 01:17 PM
yes it works thank you for all you help
-
December 15th, 2013, 01:20 AM
-
December 14th, 2013, 09:34 PM
: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...
-
December 14th, 2013, 04:34 PM
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;...
-
December 14th, 2013, 02:57 PM
I tried but now it's gives only zero dollars I will post the code once I get home
-
December 14th, 2013, 12:42 PM
Ok just tell me how to start I take over.
-
December 14th, 2013, 11:37 AM
i still dont get it as i said before im a beginner in c++
please help how to fix the code
-
December 13th, 2013, 11:18 PM
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...
-
December 13th, 2013, 03:08 PM
I don't know what to do, so confused:
An example would help what is wanted to get that result
-
December 12th, 2013, 11:01 PM
-
December 12th, 2013, 09:54 PM
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...
-
December 12th, 2013, 09:50 PM
Because what I'm doing in my writeReport function:
double totalgross, totgrosspay;
totgrosspay = (emp[i].hoursworked * emp[i].hourly rate);
totalgross = totgrosspay;
-
December 12th, 2013, 07:54 PM
how to calculate total of gross pay only, can you show an example
-
December 12th, 2013, 06:31 PM
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...
-
December 12th, 2013, 06:29 PM
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.
-
December 12th, 2013, 06:19 PM
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.
-
December 12th, 2013, 05:52 PM
Can you show an example. I tried my c++ tutor's method but it didn't worked
-
December 12th, 2013, 05:50 PM
Can you show an example. I tried my c++ method but it didn't worked
-
December 12th, 2013, 03:34 PM
: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...
-
December 11th, 2013, 07:05 PM
thank you for ur help...u should be a tutor..:wave:
after im done ill upload the updated code
-
December 11th, 2013, 06:24 PM
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
-
December 11th, 2013, 05:58 PM
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) ...
-
December 11th, 2013, 05:22 PM
can you show regularpay as an example
-
December 11th, 2013, 04:25 PM
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...
-
December 11th, 2013, 02:15 PM
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 << " " <<...
|
Click Here to Expand Forum to Full Width
|