Program Plan:
Define Header files.
Define test()function.
Declare revenue() function.
Declare predict() function.
Declare roundMoney() function.
Assigning values to x
Calculating value of revenue by using this formula.
Define local variables.
Checking the revenue condition using while() loop
Calling revenue() function
Declare roundNum variable.
Checking the roundedNum value using if loop().
Define test()function.
Declare local variable file.
Calling predict() function.
Checking the condition using for() loop
Calling revenue() function.
Displaying result.
Define function().h function.
Define header files
Calling following functions
void test(int *x);
void task();
double roundMoney(doublenum);
void revenue(double *rev, int years);
void predict(double rev, int *years);