Exercise Repetition and Function
Exercise Repetition and Function
7. Write a program that calculates the increment and new salary of an employee based on the average of three evaluation
points. Use the following functions:
In function get_increment(….):
Identify and return the increment percentage based on the following table.
In function get_new_salary(..):
Calculate and return the new salary.
int main(void)
{
x = 10, y = 11;
silly(&x);
silly(&y); /*values here*/
. . . . .
}
y = *x + 2;
*x = 2 * *x;
}