pharaoh fortune slot
ExamNotes.net
Welcome, Guest. Please login or register.
November 19, 2017, 01:48:50 PM

Login with username, password and session length
* Home Help Search Login Register
+  ExamNotes.net
|-+  General discussions
| |-+  Programming Forum
| | |-+  C++ help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: C++ help  (Read 2272 times)
beenframed
Senior Member
Sr. Member
****
Offline Offline

Posts: 396

1


View Profile WWW
« on: March 09, 2005, 08:51:00 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
Logged

BeenFramed
dmaftei
Senior Member
Hero Member
*****
Offline Offline

Posts: 2156

1


View Profile
« Reply #1 on: March 09, 2005, 10:09:09 PM »

.
« Last Edit: March 10, 2005, 10:44:59 AM by dmaftei » Logged

BSEE, MSCS
www.maftei.net
dmaftei
Senior Member
Hero Member
*****
Offline Offline

Posts: 2156

1


View Profile
« Reply #2 on: March 10, 2005, 01:12:23 AM »

Sample code in attachment (change extension to ".cc" or ".cpp", depends on your compiler).
« Last Edit: March 10, 2005, 10:45:22 AM by dmaftei » Logged

BSEE, MSCS
www.maftei.net
ChrisDfer
Certified Jackass
Hero Member
*****
Offline Offline

Posts: 1430

2


View Profile
« Reply #3 on: March 10, 2005, 01:20:19 AM »

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.
Logged
ChrisDfer
Certified Jackass
Hero Member
*****
Offline Offline

Posts: 1430

2


View Profile
« Reply #4 on: March 10, 2005, 01:31:22 AM »

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. Wink for a few reasons. Oh well, that was fun anyways. I haven't messed with C++ in a couple years.
Logged
dmaftei
Senior Member
Hero Member
*****
Offline Offline

Posts: 2156

1


View Profile
« Reply #5 on: March 10, 2005, 10:47:10 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.
Logged

BSEE, MSCS
www.maftei.net
ChrisDfer
Certified Jackass
Hero Member
*****
Offline Offline

Posts: 1430

2


View Profile
« Reply #6 on: March 10, 2005, 11:30:38 AM »

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


Cheesy
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!