Write the program with at least two functions to solve the following problem. 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 whick would be 8%.
Code:
/* calculate salary for faculty members*/
#include <stdio.h>
int main (void)
// local declarations
double presSal;
double rateincre;
int salary;
int increase;
// statements
printf ("enter your salary: ");
scanf ("%lf", %presSal);
printf (" enter rate increase: ");
scanf ("%lf", %rateincre);
return 0;
// main
This is what I wrote so far, am I on the right track?