GetDotted Domains

Viewing Thread:
"C++ Need help with code and fast/ limit on a few hours"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 09/04/03 at 16:07
Regular
Posts: 787
I need someone that can write a code in C++ that can produce an output formatted as follows.
Would you like to process a payroll record. y/n?
Please enter employee ID:123
Please enter employee Name:John Doe
Please enter employee Hours:40
Please enter employee Wage:$10.00
Would youlike to process another payroll. y/n?
Please enter employee ID:124
Please enter employee Name:Jane Smith
Please enter employee Hours:45
Please enter employee Wage:$20.00
Would you like to process another payroll record. y/n?
ID Name HRS Wage Gross SOCSEC STATE FED NET
123 Doe, John 40 10.00 400.00 25.20 14.00 68.00 292.80
124 Smith, Jane 45 20.00 950.00 59.85 33.25 161.50 695.40
End of program.
Press any key to continue
Note: All of the answers after the : of each statement is manually typed in when running the program.
This is the pseudocode that was given to me to use for this project.
const double socSecRate = 0.063;
const double stateRate = 0.035;
const double federalRate = 0.17;
const int maxsize = 10;
int arrays empID, empHours;
double array empWage;
string array empName;
all of size max as well as integer i for the array index and a character response. Initialize all values o numeric arrays to zero and string array to "default".
IF ANYONE CAN WRITE THIS PLEASE EMAIL IT TO ME BY THURSDAY AT 10:00am.
I know I am asking all lot but this is a very important project it determines wether I fiish my degree or not!!!!!
Thank you to whoever helps out at all.
[email protected]
Wed 09/04/03 at 19:28
Regular
Posts: 31
Hey miserableman are you still there
Wed 09/04/03 at 18:35
Posts: 15,443
You do that love.
Wed 09/04/03 at 18:02
Regular
Posts: 31
Yeah it is a complete F***ing nightmare well I am running over to my sisters house to see if she might have some answers so if you can send what you have that would help out all lot Thank you for helping I owe you all lot. If you live near me maybe I can take you out to dinner or something or if you have a wife or if you are female yourself I sell MayKy I can send you a product and some samples in the mail. You can give me your address on my email and I can send it too you.

[email protected]


:) :) Thank you again :) :) :)
Wed 09/04/03 at 17:50
Regular
"bing bang bong"
Posts: 3,040
I'm further than you I think, it's just that it uses the two things C++ does worst - strings and arrays. And together, they're an absolute f***ing nightmare
Wed 09/04/03 at 17:48
Regular
Posts: 31
I take it that everyone is stuck like me or doesn't have a clue like me :(
Thanks for trying to help everyone I really appreciate it.
Wed 09/04/03 at 17:27
Regular
Posts: 31
Yes that is the problem I can't interact with it thank you I could't find the words for that
Wed 09/04/03 at 17:26
Regular
Posts: 31
void getData( int&id, string& name, int& hours, double& wage)
{


}
double calcGross(int hours, double wage)
{

}
void calcTaxes( const double&gross, doble&socSec, const double& state, const double& federal)
{

}
double calcNet( const double& gross, const double& socSec, const double& state, const doble& federal)
{

}
void printData(const int id[], const string name[], const int hours[],
const double wage[])
Wed 09/04/03 at 17:21
Regular
"Picking a winner!"
Posts: 8,502
Do you need to be able to interact with it? Ie it goes through one line at a time so that when you type y at the first line it goes on and if you type n it just stops?

Or are you just after it to just display every line you have got there?
Wed 09/04/03 at 17:20
Regular
Posts: 31
Ok hold on I am going to type it but it looks like scribble just a bunch of code in a mess. Just certain parts that I can do.
Wed 09/04/03 at 17:18
Regular
Posts: 31
Me too

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thank you very much for your help!
Top service for free - excellent - thank you very much for your help.
First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.