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

Page 1

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

DOWNLOAD SOLUTION https://www.solvedcollegepapers.com/product/csis-209-csis209-csis-209-lib/ Create a class called SavingsAccount. Use a static variable called annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance, indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12 – this interest should be added to savingsBalance. Provide static method setAnnualInterestRate to set the annualInterestRate to a new value. Write an application to test class SavingsAccount. Create three savingsAccount objects, saver1, saver2, and saver3 with balances of $2,000.00, $3,000.00, and 0.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest and display the new balances for both savers. Then set the annualInterestRate to 5%, calculate the next month’s interest and display the new balances for both savers. 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 4 – Liberty University Create a class called SavingsAccount. Use a static variable called annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance, indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12 – this interest should be added to savingsBalance. Provide static method setAnnualInterestRate to set the annualInterestRate to a new value. Write an application to test class SavingsAccount. Create three savingsAccount objects, saver1, saver2, and saver3 with balances of $2,000.00, $3,000.00, and 0.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest and display the new balances for both savers. Then set the annualInterestRate to 5%, calculate the next month’s interest and display the new balances for both savers. Technical Requirements: Create SavingsAccount class with static variable annualInterestRate and private instance variables savingsBalance (double) and savingsAccountName (string). Create a mutator method to set the savingsAccountName. Call this method setSavingsAccountName. The method should take a string argument and return void. Create an accessor method to retrieve the savingsAccountName. Call this method getSavingsAccountName. The method should take no arguments and return a string (i.e. the savingsAccountName). Create a mutator method to set the savingsBalance. Call this method setSavingsBalance. The method should take a double argument and return void. Create an accessor method to retrieve the savingsBalance. Call this method getSavingsBalance. The method should take no arguments and return a double (i.e. the savingsBalance). Include two constructors. The first takes no arguments and sets the savingsBalance variables to zero and sets the savingsAccountName to an empty string by calling the second (i.e. two argument) constructor with 0 and an empty string. The second constructor takes one double argument (the savingsBalance) and one string argument (the savingsAccountName), and sets the savingsBalance by calling the setSavingsBalance method and setsavingsAccountName method, respectively. Create CalculateMonthlyInterest method with formula. The method should return void.


Create setAnnualInterestRate method to take a double argument representing the annualInterestRate and return void. Create PrintSavingsAccount method to display the savingsBalance, savingsAccountName, and annualInterestRate for an object. Use the output shown below as a guideline for the display. Create a separate class called SavingsAccountTest, which contains the Main() method. In the Main() method, create three savingsAccount objects called saver1, saver2, and saver3. Initialize saver1 and saver2 with the balances listed above and the names “Saver_One” and “Saver_Two”, respectively. Do not initialize saver3 with anything. Instead, create the object by invoking its zero-argument constructor, which will initialize its balance to 0 and its name to an empty string. In the Main() method, call setAnnualInterestRate to set the interest rate to 4%. Next, call the setSavingsAccountName for saver3 to set its name to “Saver_Three”. Then, call the setSavingsAccountBalance for saver3 to set its balance to $50,000. Print the results by calling PrintSavingsAccount for each object. Next, call the CalculateAnnualInterestRate method for all three saver objects. Print the results again by calling PrintSavingsAccount for each object. Next, change the annualInterestRate to 5% by calling the setAnnualInterestRate method. Print the results again by calling PrintSavingsAccount for each object. 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.