C++ programming
1. Write a function that computes the balance of a bank account with a given initial balance and interest rate, after a given number of years. Assume interest is com- pounded yearly.
2. Write the following functions and provide a program to test them.
a. double smallest(double x, double y, double z), returning the smallest of the arguments.
b. double average(double x, double y, double z), returning the average of the arguments.