Assignment 01
Assignment 01
Date: 12 – 03 - 2025
Q1: Write a C++ program that takes user input for salary and years of service. The program
should calculate the performance-based bonus amount according to the following rules:
If the salary is greater than or equal to $50,000 and the years of service are more than 5
years, the employee receives a 10% bonus.
If the salary is between $30,000 and $49,999 and the years of service are more than 3
years, the employee receives a 7% bonus.
If the salary is below $30,000, the employee receives a 5% bonus, regardless of years of
service.
Otherwise, the employee receives no bonus.
The program should display the calculated bonus amount. (CLO # 2)