-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.cpp
More file actions
60 lines (48 loc) · 1.12 KB
/
Account.cpp
File metadata and controls
60 lines (48 loc) · 1.12 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
53
54
55
56
57
58
59
/*
* Accounts.cpp
*
* Created on: Jan 20, 2020
* Author: jenny
*/
#include "Account.h"
#include <cmath>
#include <Algorithm>
Account::Account(string ownerNameRecieved, float creditBalanceRecieved, float availableCreditRecieved){
ownerName = ownerNameRecieved;
creditBalance = creditBalanceRecieved;
availableCredit = availableCreditRecieved;
}
string Account::getOwnerName() {
return ownerName;
}
float Account::getCreditBalance() {
return creditBalance;
}
float Account::getAvailableCredit() {
return availableCredit;
}
void Account::setOwnerName(string ownerNameRecieved) {
ownerName = ownerNameRecieved;
return;
}
void Account::setCreditBalance(float creditBalanceRecieved) {
creditBalance = creditBalanceRecieved;
return;
}
void Account::setAvailableCredit(float availableCreditRecieved) {
availableCredit = availableCreditRecieved;
return;
}
float Account::calculatePayment() {
return creditBalance/5;
}
void Account::modify(int arrayRecieved[]){
return;
}
bool Account::isLessThan(int first, int second){
bool isSmaller = true;
if(first > second) {
isSmaller = false;
}
return isSmaller;
}