Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q1. Write a program which defines an integer array of size three (3), the size o

ID: 3622750 • Letter: Q

Question

Q1. Write a program which defines an integer array of size three (3), the size of the array should be a constant variable. Read data using loops for this array from the user. The data of this array will be the number of vacation days of an employee in a company.
Define a user define function modify_days() which returns the number of vacation days plus 5 of the employees.
In main function display the number of vacation days of each employee after modification.
e.g. Your output should look like this,

Enter allowed vacation days for employees 1 through 3:
10 20 5
The revised numbers of vacation days are:

Employee number 1 vacation days = 15
Employee number 2 vacation days = 25
Employee number 3 vacation days = 10


Explanation / Answer

#include #include const int Number_of_Employees=3; int modify_days(int old_days); int main() { int vacation[Number_of_Employees],number; cout