0% found this document useful (0 votes)
5 views1 page

codes

The document outlines a bonus structure for employees based on their years of experience and salary. Employees with less than 5 years receive a 5% bonus, those with 5 to 10 years receive 10%, and those with over 10 years receive 15%, with an additional $1,000 bonus for salaries over $100,000. The program is designed to calculate and print each employee's name, original salary, and total bonus.

Uploaded by

Pratyush Prem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

codes

The document outlines a bonus structure for employees based on their years of experience and salary. Employees with less than 5 years receive a 5% bonus, those with 5 to 10 years receive 10%, and those with over 10 years receive 15%, with an additional $1,000 bonus for salaries over $100,000. The program is designed to calculate and print each employee's name, original salary, and total bonus.

Uploaded by

Pratyush Prem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

A company has a list of employees with their corresponding salaries and years of experience.

The company wants to give a bonus to employees based on their years of experience and
salary. The company has the following criteria for the bonus:

1.​ Employees with less than 5 years of experience receive a bonus of 5% of their salary.
2.​ Employees with 5 to 10 years of experience (inclusive) receive a bonus of 10% of their
salary.
3.​ Employees with more than 10 years of experience receive a bonus of 15% of their
salary.

Additionally:

●​ If the salary is above $100,000, the employee gets an extra $1,000 bonus on top of the
calculated bonus.
●​ The program should calculate the total bonus for each employee and print out the name
of the employee, their original salary, and the total bonus they will receive.

The employee data is stored in two parallel arrays:

●​ employees[]: An array containing the names of the employees.


●​ salaries[]: An array containing the corresponding salaries of the employees.
●​ yearsOfExperience[]: An array containing the corresponding years of experience of
the employees.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy