Write the program with at least two functions to solve the
following problem. The members of the board of a small
university are considering voting for a pay increase for
their 5 faculty members. They are considering a pay
increase of 8%. Write a program that will prompt for and
accept the current salary for each of the faculty members,
then calculate and display their individual pay increases.
At the end of the program, print the total faculty payroll
before and after the pay increase, and the total pay
Answer / sammy
double getIncrease (double curSal);
int main (void)
for(int i=0; i<3; i++)
printf("Enter the salary for employee %d: $", i+1);
for (int j=0; j<3; j++)
payIncreases[j] = getIncrease(CurrentSal[j]);
printf("The pay increase for employee %d is $%d\n",j+1,
double getIncrease (double curSal)
PayIncrease = curSal*.08;
|Is This Answer Correct ?||1 Yes||1 No|
What is pass by reference in c?
What are the storage classes in C?
how to find your architecture is LittleEndian or BigEndian?
1 1 2 1 2 3 1 2 3 4 1 2 3 1 2 1 generate this output using for loop
how to set Nth bit of a variable?
Which driver is a pure java driver
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered
write a program using linked list in which each node consists of following information. Name Branch Rollno Telephone no i) Write the program to add information of students in linked list
What are the differences between Structures and Arrays?
What are the advantages and disadvantages of pointers?
How does pointer work in c?