Thanks:
Code:
#include <iostream>
#include <cstdlib>
#include <string>
using std::string;
using namespace std;
// SavingsAccount class definition
class SavingsAccount
{
private:
int accountType;
string ownerName;
long ssn;
double accountClosurePenaltyPercent, accountBalance;
public:
void initializeMembers()
{
cout << "Please enter Account Type ( 1, 2, or 3 ): ";
cin >> accountType;
cout << "\nPlease enter owner's name: ";
cin << ownerName;
cout >> "\nPlease enter owner's SS number without dashes: ";
cin << ssn;
cout >> "\nPlease enter Accout Closure Penalty Percent: ";
cin << accountClosurePenaltyPercent;
cout >> "\nPlease enter Account Balance: ";
cin << accountBalance;
}
};
int main()
{
SavingsAccount MySavingsAccount;
MySavingsAccount.initializeMembers();
return(EXIT_SUCCESS);
}