#include <stdio.h>
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
class Account {
private:
int number = 0;
string name;
int balance = 0;
public:
Account(int createNumber, string createName, int createbalance) {
number = createNumber;
name = createName;
balance = createbalance;
}
void display() {
cout << "계좌번호 : " << number << " 이름 : " << name << " 잔고 : " << balance <<"\n";
};
void set_deposit(int money) {
balance += money;
}
void set_withdraw(int money) {
balance -= money;
}
void set_addInterest() {
balance = (balance * 3.5) + balance;
}
};
int main(void) {
Account acct1(1513, "bella" , 5000);
Account acct2(5348, "gigi", 8000);
acct1.display();
acct2.display();
acct1.set_deposit(100000);
acct1.set_deposit(200000);
acct2.set_deposit(50000);
acct1.set_addInterest();
acct2.set_addInterest();
acct1.set_withdraw(50000);
acct2.set_withdraw(100000);
acct1.display();
acct2.display();
}