Implement the member functions and in main() write a driver program to test the
ID: 3620024 • Letter: I
Question
Implement the member functions and in main() write a driver program to test the class.I just have no idea as to where to start and am banging my head up over this one. :/
#include <iostream>
using namespace std;
class SavingsAccount
{
public:
SavingsAccount(double b) { savingsBalance = b >= 0 ? b : 0; }
void calculateMonthlyInterest();
static void modifyInterestRate( double );
void printBalance() const;
private:
double savingsBalance;
static double annualInterestRate;
friend double getInterestRate(SavingsAccount);
};
double SavingsAccount::annualInterestRate = 0.0;