WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2004, 02:40 PM
WebProWorld New Member
 

Join Date: Sep 2004
Location: Greece
Posts: 8
Mini_me RepRank 0
Default C help!!

Hi any ideas how i can write this code? :

"A company is paying its employees apart from the basic salary,two allowances,a family
allowance and a timeallowance.
The family allowance is 30 euros per child,the timeallowance is 45 euros per three years."
I want the program to read the employee's basic salary,the number of his/her children,the

years of his/her previous employment and finally to print his/her total salary rounded to
the smallest integer number.

I use the sstream library and i would like this program to use the most simple C code.

Thank you so much!!
Reply With Quote
  #2 (permalink)  
Old 10-14-2004, 05:12 AM
WebProWorld New Member
 

Join Date: Mar 2004
Location: England
Posts: 4
scatcat RepRank 0
Default

Hi Mini_me

This sounds like a bit of home work to me ;-)

You have described what the program needs to do perfectly. That is often the hardest part.

From there you just need to turn it into code.

I think the best thing you could do, would be to try and write the code and test it.

If it still does not work come back, with the code, for some help.

The best way to really learn anything is to try, make mistakes and learn from those mistakes. This way you not only learn you also gain a deeper understanding of what you are supposed to be learning.

If someone here where to write the program for you, you would learn nothing, you would just have a bunch of working code that you may not even understand.

Kind Regards.
Reply With Quote
  #3 (permalink)  
Old 10-14-2004, 07:01 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Get a C Programming book from the library

Hi Mini_me, I go along with the comments scatcat made above. You're not going to learn anything by having someone else come along and magick up some code for you.

I've a sneaking suspicion this could be your homework or latest assignment we're seeing here too! :o)

Paul
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0