Army Institute of Business Administration
Computer and Its Applications in Business
BBA - 12, Alpha
Lab Final
ID Name Age Salary Sales Department
1 Alice 25 5000 17 Sales
2 Bob 30 4500 10 Marketing
3 Charlie 22 5200 20 Sales
4 David 35 4800 26 IT
5 Eve 28 4700 18 Marketing
6 Frank 40 5300 30 Sales
7 Grace 24 4900 12 IT
1. Create New Columns:
a. Add Bonus and Total Salary columns to the right of the “Department” column.
b. Use the following logic to calculate the Bonus:
i. If the Sales is greater than 25, the bonus will be 1000.
ii. If the Sales is greater than 15 but less than or equal to 25, the bonus will be 700.
iii. Otherwise, the bonus will be 0.
Write a formula to fill the Bonus column.
2. Calculate Total Salary: Add a formula to calculate the Total Salary, which is the sum of Salary
and Bonus for each employee.
3. Find Statistical Values:
a. Maximum Salary: Determine the highest value in the Total Salary column.
b. Minimum Salary: Determine the lowest value in the Total Salary column.
c. Average Salary: Calculate the average of the Total Salary column.
4. Bonus Distribution:
a. Count how many employees received a bonus of 1000.
b. Count how many employees received a bonus of 700.
c. Count how many employees received a bonus of 0.