CSIS 209 CSIS209 CSIS/209 Programming Assignment 6 – Liberty University

Page 1

CSIS 209 CSIS209 CSIS/209 Programming Assignment 6 – Liberty University

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/csis-209-csis209-csis-209-lib/ 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 Category: Assignments Help Experts Tags: CSIS 209 CSIS209 CSIS/209 C# Programming Liberty University, CSIS 209 Programming Assignment 1, CSIS 209 Programming Assignment 2, CSIS 209 Programming Assignment 3, CSIS 209 Programming Assignment 4, CSIS 209 Programming Assignment 5, CSIS 209 Programming Assignment 6, CSIS 209 Programming Assignment 7, CSIS 209 Programming Assignment 8, CSIS 209.net, csis209 cms systems, csis209 programming assignment 1, csis209 programming assignment 8, csis209 week 1, csis209 week 8 

Description

Description


CSIS 209 Programming Assignment 6 – Liberty University 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 in the account and call the Credit method. Print the object. Next, prompt the user to enter an amount to withdraw and call the Debit method. Print the object. After the user has made a deposit and a withdrawal from an account, calculate interest if the account is a SavingsAccount and print the object. To perform this step, you must first determine the object’s type. If the Account is a SavingsAccount, calculate the amount of interest owed to the Account using method CalculateInterest and print the account a final time. If the account is a CheckingAccount, you do not need to CalculateInterest nor print the account a final time. Hint: To determine if an account is a savings or checking account, use the .getType method which returns a string representing the Name or FullName property. Then use the “.Equals” method to determine if the returned string is equal to the name of the class. For example: 1acct.getType().Name returns the string “SavingsAccount” or “CheckingAccount”. Once you have determined that an account is a SavingsAccount object, you must “cast” the account object into a SavingsAccount object in order to access its CalculateInterest method. I like to perform this in two steps: declare a different variable to hold the reference to the object that has been cast from an Account object into a SavingsAccount object. Then, using this new variable, invoke its CalculateInterest method. For example, at the beginning of the Main() method, I declare a variable of type SavingsAccount as follows: 1SavingsAccount temp_account; In my foreach loop, I have a variable called “acct” that is defined as an Account object. To downcast this Account object into a SavingsAccount object, I use the syntax:


1temp_account = (SavingsAccount) acct; At this point, because temp_account is a SavingsAccount object, I can invoke its CalculateInterest method: 1temp_account.CalculateInterest(); Download Full Course Solution: CFDI-320: File Forensics WEEK 1-7 Discussion Solutions-Champlain College https://www.solvedcollegepapers.com/product/cfdi-320-file-forensics-week-1-7discussion-solutions/ Explain what you see to be the pros and cons of both live and dead acquisitions. Is there anything you may miss doing it one way versus the other, and how might you address that possibility? Is verification easier in one versus the other? Why or why not? Please submit your initial post by Wednesday at 11:59 pm and all follow-up posts by Sunday at 11:59 pm. The discussions grading rubric is used for this assignment. Download Full Course Solution: CIS 336 CIS336 CIS/336 ENTIRE COURSE HELP – DEVRY UNIVERSITY https://www.solvedcollegepapers.com/product/cis-336-cis336-cis-336-dev/ CIS336 Entire Course includes:       

CIS336 Lab 1 Normal Forms and Entity Relationship Diagrams CIS 336 Lab 2 The Expanded Entity Relationship Diagram CIS336 Lab 3 Building the Physical CIS336 Lab 4 Introduction to Select Insert Update and Delete Statements CIS336 Lab 5 Joining Tables CIS336 Lab 6 Group Functions and Subqueries CIS336 Lab 7 Working with Views

Download Full Course Solution: CFDI-320- Week 2: Assignment – Job Interview Test https://www.solvedcollegepapers.com/product/cfdi-320-week-2-assignment-jobinterview-test/ Week 2: Assignment – Job Interview Test. Due Jul 18 by 11:59pm. Points 100. Submitting a file upload You are in the interview process for a position at a popular digital forensics and incident response firm in the region where you live. As part of the interview process, this company has


issued you a disk image and they are requiring you to navigate your way through it or parse it by manually. They believe in a walk before you run philosophy and require all new hires to demonstrate capability before they can use automated “push-button” digital forensic tools. Download Full Course Solution: MGMT-566_01-FA20-Assignments https://www.solvedcollegepapers.com/product/mgmt-566/ You are going to conduct a Mock Negotiation Exercise with your team partner using the Canvas conference next week. For this week, I want you to test on using Canvas Conference. In order to access your group conference, please follow the instructions below to test with your team partner by recording a short video (around one minute to introduce yourself with your team partner). Communicate with your team partner to schedule a time to start the testing. 1. Go to your group by clicking on the “People” tab on the left navigation. 2. Click on the “Groups“ 3. Find your group by clicking on “Visit“.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.