-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
41 lines (27 loc) · 801 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "BankApp.h"
#include <iostream>
#include <iomanip>
using namespace std;
// function prototypes
void getInput(BankApp& account);
void programPause();
void clearWindow();
int main() {
// variable declaration/intialization
char userInput = 'y';
auto bankAccount = make_unique<BankApp>();
// main program loop
while(tolower(userInput) == 'y'){
clearWindow();
getInput(*bankAccount);
bankAccount->PrintValues();
bankAccount->WithoutDeposit();
bankAccount->WithDeposit();
// test that the correct balance and interest values are being calculated
//test->ByMonth();
cout << "Input new values? [Y/N] ";
cin >> userInput;
}
cout << "\nThe program has ended" << endl;
return 0;
}