C# VS 2010 BMIS 209 Assignment 6 Banking

Feb 3rd, 2012
Studypool Tutor
Liberty University
Course: BMIS
Price: $20 USD

Tutor description

PROGRAMMING ASSIGNMENT 6 INSTRUCTIONS Adapted from: Deitel & Deitel (2011). Visual C# 2010 How to Program (4th ed.). Pearson Education, Inc. Develop a polymorphic banking application using the Account hierarchy you created in Assignment #5. Create the following two SavingsAccount objects and two CheckingAccount objects and store them in an array called “arrays” of Account references to the objects: Account Name Account Number Initial Balance Fee Charged Interest Rate [your name]-Savings-1 1 1,000 4% [your name]-Savings-2 2 2,000 5% [your name]-Checking-1 3 3,000 3.00 [your name]- Checking -2 4 4,000 4.00 Using a “foreach” loop, iterate over each account in the array. For each Account in the array, first print the account. Next, allow the user to specify an amount of money to withdraw from the Account using method Debit and an amount of money to deposit into the Account using method Credit. Specifically, for each account, prompt the user to enter an amount to deposit

Word Count: 521
Showing Page: 1/4
Account.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace CSBMIS05BankAccount{ 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(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 <= Balance) {

Review from student

Studypool Student
" Awesome! Exactly what I wanted. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1827 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors