#include "savingaccount.h" float savingaccount::calculatemonthlyinterest() {float monthlyinterest = savingbalance*annualinterest/12; savingbalance = savingbalance + monthlyinterest; return monthlyinterest; } void savingaccount::setsavingsbalance(float s) {savingbalance=s;} void savingaccount::modifyinterest(float newvalue) { annualinterest = newvalue; } void savingaccount::setinterest(float newvalue) { annualinterest = newvalue; } float savingaccount::annualinterest = 0.0;