-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHeader.cpp
More file actions
52 lines (39 loc) · 1.06 KB
/
Header.cpp
File metadata and controls
52 lines (39 loc) · 1.06 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#Banking app cpp file
#include <iostream>
using namespace std;
#include "Header.h"
//default constructor
airgead::airgead() {
}
//constructor with parameters
void airgead::SetInvestmentAmount(double amount) {
InvestmentAmount = amount;
}
double airgead::GetInvestmentAmount() {
//amount = InvestmentAmount;
return InvestmentAmount;
}
void airgead::SetmonthlyDeposit(double deposit) {
monthlyDeposit = deposit;
}
double airgead::GetmonthlyDeposit() {
return monthlyDeposit;
}
void airgead::SetAnnualInterests(float Interests) {
AnnualInterests = Interests;
}
float airgead::GetAnnualInterests() {
return AnnualInterests;
}
void airgead::SetNumOfYears(int years) {
NumOfYears = years;
}
int airgead::GetNumOfYears() {
return NumOfYears;
}
void airgead::print() const{
cout << "InvestmentAmount: $" << InvestmentAmount << endl;
cout << "monthlyDeposit: $" << monthlyDeposit << endl;
cout << "AnnualInterests: %" << AnnualInterests << endl;
cout << "NumOfYears: " << NumOfYears << endl;
}