Computer Science, asked by asimzubaid0, 22 hours ago

write a programe in C++
A company decided to give bonus of 5% to employee if his/her year of service is
more than 5 years.
Ask user for their salary and year of service and print the net bonus amount.

Answers

Answered by shilpajn1981
0

Mark  as brainiest

Get a C Compiler. This is the first step you'd want to do before starting

Answered by vg780538
3

Answer:

int main()

{

int salary, service;

cout << "enter the salary" << endl;

cin >> salary;

cout << "year of service" << endl;

cin >> service;

salary = service * salary;

if (service > 5)

{

 cout << "net bonus amount" << salary + (salary * .5) << endl;

}

else

{

 cout << "salry" << salary << endl;

}

return 0;

}

Explanation:

Similar questions