Home > Archive > Programming Forum > March 2005 > C++ help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author C++ help
beenframed

2005-03-09, 6:51 pm

Hi, I am new to programmign and am trying out some exercises.

Can someone help me with soem source code for creating this:

The code should be:

#include

main()
{
/* Declare variables */

/* Prompt for input values from the screen */

/* calculate gross pay */

/* print out employee information to the screen */
}


What should my source code look like.

Thanks for any help
dmaftei

2005-03-09, 8:09 pm

.
dmaftei

2005-03-09, 11:12 pm

Sample code in attachment (change extension to ".cc" or ".cpp", depends on your compiler).
ChrisDfer

2005-03-09, 11:20 pm

Hey I tried posting some code and it didn't work... wtf? Hey umm your code doesn't take into account overtime and time and a half. Here is the code I wrote, it probably is not the best way of doing it, but ehnnn oh well.
ChrisDfer

2005-03-09, 11:31 pm

quote:
Originally posted by ChrisDfer
Hey I tried posting some code and it didn't work... wtf? Hey umm your code doesn't take into account overtime and time and a half. Here is the code I wrote, it probably is not the best way of doing it, but ehnnn oh well.


heheh and now I been informed that isn't even what gross pay is. Good thing I am not in a programming course. for a few reasons. Oh well, that was fun anyways. I haven't messed with C++ in a couple years.
dmaftei

2005-03-10, 8:47 am

quote:
Originally posted by ChrisDfer
your code doesn't take into account overtime and time and a half

This is SAMPLE code, not payroll software.
ChrisDfer

2005-03-10, 9:30 am

quote:
Originally posted by dmaftei
This is SAMPLE code, not payroll software.


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net