The deadline is tomorrow morning P5.

  • Will someone please help me with these. The deadline is tomorrow morning
  • P5.2 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 compounded yearly.
  • P5.3 
  • 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

P5.2 Write a function that computes the balance of a bank account with a given initialbalance and interest rate, after a given number of years. Assume interest is compoundedyearly.def main():#…