Calulate interest

Calculate bank's interest in C++ program.