Computers and Technology
Computers and Technology, 25.03.2021 05:00, froyg1234

Declare and define a function that computes bonus for an employee depending on the base salary and the number of years of experience of the employee. Inside the function, check the number of experience. If the number of experience is greater than 10 years, the bonus is 5% of the base salary, otherwise it is 2.5% of the base salary. You will need to call this function from your main function and pass thebase salary and the number of years as parameters/arguments. Start with the following template to write you program. #include
using namespace std;
//function declaration is provided
double compute_bonus (double base_salary, int experience);
int main()
{
double base_salary;
int experience;
//get the values of base_salary
//and experience from the user
//call compute_bonus by passing necessary parameters
//display the bonus returned by the function
return 0;
}
//function definition
/*Enter the function header here*/
{
double bonus;
//compare experience and calculate bonus
//return the computed bonus
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:50, ImBADatmath8743
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, ladyree8721
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, daniella0123
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
Do you know the correct answer?
Declare and define a function that computes bonus for an employee depending on the base salary and t...

Questions in other subjects: