Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Bank
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jose.alencastro
Bank
Commits
a4870f53
Commit
a4870f53
authored
May 15, 2022
by
jose.alencastro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok
parent
4b119eaf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
BankAccount.class
BankAccount.class
+0
-0
BankAccount.java
BankAccount.java
+13
-13
SavingsAccount.class
SavingsAccount.class
+0
-0
SavingsAccount.java
SavingsAccount.java
+2
-2
No files found.
BankAccount.class
View file @
a4870f53
No preview for this file type
BankAccount.java
View file @
a4870f53
...
...
@@ -8,15 +8,9 @@ public class BankAccount
// contructor method
public
BankAccount
()
{
accountNumber
=
12345
;
accountNumber
=
24680
;
name
=
"Ben"
;
balance
=
1000
;
}
// deposit method
public
void
deposit
(
double
amount
)
{
balance
=
balance
+
amount
;
balance
=
4000
;
}
// withdraw method
...
...
@@ -34,6 +28,12 @@ public class BankAccount
}
}
// deposit method
public
void
deposit
(
double
amount
)
{
balance
=
balance
+
amount
;
}
// bank fee method
public
double
bankFee
()
{
...
...
@@ -52,9 +52,9 @@ public class BankAccount
public
static
void
main
(
String
[]
args
)
{
BankAccount
bensAccount
=
new
BankAccount
();
bensAccount
.
deposit
(
2
00
);
bensAccount
.
deposit
(
1
00
);
bensAccount
.
bankFee
();
bensAccount
.
withdraw
(
13
00
);
bensAccount
.
withdraw
(
20
00
);
bensAccount
.
displayAccountDetails
();
}
}
\ No newline at end of file
SavingsAccount.class
View file @
a4870f53
No preview for this file type
SavingsAccount.java
View file @
a4870f53
...
...
@@ -58,8 +58,8 @@ public class SavingsAccount
public
static
void
main
(
String
[]
args
)
{
SavingsAccount
bensAccount
=
new
SavingsAccount
();
bensAccount
.
deposit
(
2
00
);
bensAccount
.
withdraw
(
5
0
);
bensAccount
.
deposit
(
3
00
);
bensAccount
.
withdraw
(
10
0
);
bensAccount
.
accrueInterest
();
bensAccount
.
bankFee
();
bensAccount
.
displayAccountDetails
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment