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
}
Answers: 3
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
Computers and Technology, 22.06.2019 10:30
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
Declare and define a function that computes bonus for an employee depending on the base salary and t...
Mathematics, 18.03.2021 03:30
Physics, 18.03.2021 03:30
Advanced Placement (AP), 18.03.2021 03:30
Mathematics, 18.03.2021 03:30
Computers and Technology, 18.03.2021 03:30
Biology, 18.03.2021 03:30
Geography, 18.03.2021 03:30
Mathematics, 18.03.2021 03:30