create a program that will:
(a) accept the name, basic salary and years of servive of an employee.
(b) use an appropriate construct to calculate the bonus due.
(c) output the employees's name, years of service, basic salary and bonus in a labelled format.
(d) the program must allow for the input and computation of several persons until 'END' is encountered for name and zero (0) for salary and years of service.

    years of service                 bonus on salary
      >15                                    15%
      11-15                                  10%
      5-10                                   7%
2 Years
Discussion Span
Last Post by Suzie999

So instead of learning how to do it yourself, you're trying to cheat your way through class. That's a real winners attitude.


yep so can you help me i have up coming exams strating from the 18th June, 2014. so right now im trying to answer past exams papers


"Give a man a fish, feed him for a day, teach a man to fish, feed him for a lifetime."

We're not going to do it for you. If you don't understand c, then I would suggest you pay attention in class! Do you have a textbook? If so, which one? The textbook will probably do a decent job of teaching you the basics of C.

If you don't have any books or resources, I would recommend you get a good book on C if you can. If you don't, then you can read this tutorial.

Once you've learned a little C, try to write the program youself. I would recommend you start by writting the program IN ENGLISH (pseudocode) before you write it out in C. If you're stuck, come back here, and explain the problem.


What I don't understand is why people take courses in a subject they have no intention of learning.

Boggles the mind.

Votes + Comments
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.