











CompTIA
Exam Vouchers
Save money on CompTIA exams
| Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
| TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more | * ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i Online practice tests
Certification sites Online university Online college Online education Distance learning Software forum Server administration forum Programming resources
|
|  |
beenframed
Senior Member

Registered: Sep 2000 Location: NYC Country: USA State: Certifications: A+ Working on:
Total Posts: 396
|
|
C++ help
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
__________________
BeenFramed
Report this post to a moderator
|
|
03-09-05 11:51 PM
|
|
dmaftei
Senior Member M
Registered: Nov 2000 Location: Country: USA State: Certifications: none Working on: none
Total Posts: 2156
|
|
|
03-10-05 01:09 AM
|
|
dmaftei
Senior Member M
Registered: Nov 2000 Location: Country: USA State: Certifications: none Working on: none
Total Posts: 2156
|
|
Sample code in attachment (change extension to ".cc" or ".cpp", depends on your compiler).
Attachment: sample.txt
This has been downloaded 8 time(s).
Last edited by dmaftei on 03-10-05 at 01:45 PM
Report this post to a moderator
|
|
03-10-05 04:12 AM
|
|
ChrisDfer
Certified Jackass M
Registered: Mar 2002 Location: Country: United States State: Certifications: Sold them all on ebay(currently selling I-NET+ & Server+ all bids considered) Working on: the really really really really really really really really really hard ones
Total Posts: 1417
|
|
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.
Attachment: crap.txt
This has been downloaded 8 time(s).
__________________
http://struthers-family.com
Report this post to a moderator
|
|
03-10-05 04:20 AM
|
|
ChrisDfer
Certified Jackass M
Registered: Mar 2002 Location: Country: United States State: Certifications: Sold them all on ebay(currently selling I-NET+ & Server+ all bids considered) Working on: the really really really really really really really really really hard ones
Total Posts: 1417
|
|
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.
__________________
http://struthers-family.com
Report this post to a moderator
|
|
03-10-05 04:31 AM
|
|
dmaftei
Senior Member M
Registered: Nov 2000 Location: Country: USA State: Certifications: none Working on: none
Total Posts: 2156
|
|
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.
Report this post to a moderator
|
|
03-10-05 01:47 PM
|
|
ChrisDfer
Certified Jackass M
Registered: Mar 2002 Location: Country: United States State: Certifications: Sold them all on ebay(currently selling I-NET+ & Server+ all bids considered) Working on: the really really really really really really really really really hard ones
Total Posts: 1417
|
|
|
03-10-05 02:30 PM
|
|
|
Featured site: MCSE, MCSD, CompTIA, CCNA training videos
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF. |
|
ExamNotes forum archive
|