Access Millions of academic & study documents

BIMS209 C# ASSIGNMENT 7 banking Console Application

Content type
User Generated
Type
Lab
Showing Page:
1/5
Account.cs





 !"#!$
%
#
%
&'
&#(
&#('
'')*%+
'&)'&*
%
,)&-.!!*.&
.!
+
'#()*%#(+
'&#()&*%#(.&+
'#(')*%#('+
'&#(')&*%#('.&+
'#)*%+
'#)/0/'0'/'*
%
#()/*
#(')/'*
)/'*
+
'&&)'/*
%
1./
+
'&'2')'/*
%
,)/3!*
44(&('5)6&57(&'
6*
,)/-.!88/3.*
%
7./

+
445)69:6*
+
'&&;#)*
%
<)6#(=%!=+60#(*
<)6('=%!=(+60#('*

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/5
<)6=%!=+60*
+
+
+
Savingsaccount.cs





 !"#!$
%
&#=#
%
&'>
''>)*%>+
'&>)'&*
%
,)&-.!*>.&
44(&('5)6&57(&'
6*
+
'&#)*%+
'&#)/0/'0?/'0'/*
=')/0/'0/'*
%
>./
+
'')*
%
>)*@)*
+
'&&;#)*
%
';#)*
<)6>=%!=(+60>*
+
+
+
CheckingAccount.cs





 !"#!$
%
#=#

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/5

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 5 pages?
Access Now
Unformatted Attachment Preview
Account.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSBIMS209Assignment07 { class Account { private double Balance; private string AccountName; private int AccountNumber; public double getBalance() { return Balance; } public void setBalance(double value) { if (value >= 0.0) Balance = value; else Balance = 0; } public string getAccountName() { return AccountName; } public void setAccountName(string value) { AccountName = value; } public int getAccountNumber() { return AccountNumber; } public void setAccountNumber(int value) { AccountNumber = value; } public Account() { } public Account(String p_name, int p_number, double p_balance) { setAccountName(p_name); setAccountNumber(p_number); setBalance(p_balance); } public virtual void Credit(double p_amount) { Balance += p_amount; } public virtual bool Debit(double p_amount) { if(p_amount=0 && p_amount ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4

Similar Documents