how to make program to calculate the total salary of employees of the bonus earned?

calculate the total salary of employees of the bonus earned.

how to create a program to calculate the total salary of employees of the bonus earned?. There are variables in the form of base salary, the amount of goods, total salary and bonus with type double. Total salary of employees in the can of: basic salary + (salary * (bonus/100)). Get from the bonus in the amount of goods sold.

if the quantity of goods sold:

more than equal to 200, then bonus = 25
from 150 to 199, then bonus = 20
from 75 to 149, then bonus = 15
less than 75, then bonus = 0

please help me.
This is a beginner-level question, so it really belongs in the beginner forum.

If, you get stuck after reading http://www.cplusplus.com/doc/tutorial/control/ post your best effort there.
Topic archived. No new replies allowed.