ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 26 Apr 2017 My Price 9.00

Unit 4 Chapter 13 Assignment

Need help with this assignment. Can someone please help?

 

 
Unit 4 Chapter 13 Assignment
Grading Information: This Program is due on Date Specified.
Comments are REQUIRED; flow charts and pseudocode are NOT REQUIRED.
Directions Points The files must be called <LiFiUnit4Ch13.java>
The files must be called <LiFiUnit4Ch13Inevstor.java>
(LiFi = Last Initial First Initial)
Proper coding conventions required the first letter of the class start with a capital
letter and the first letter of each additional word start with a capital letter. 5% Only submit the .java files needed to make the program run. Do not submit the
.class files or any other files.
Style Components
Include properly formatted prologue, comments, indenting, and other style elements
as shown in Chapter 2 starting page 64 and Appendix 5 page 881-892. 5% Topics covered in chapter
Topics with * are covered in this assignment. Ensure you use every item listed below in your
completed assignment. *Composition and Aggregation
*Inheritance
*Constructors in a Subclass
Method Overriding
*Final Access Modifier
Basic Requirements
Write a program that tracks an investments for 2 person based on the input of an interest
rate. The initial balance should be $2,000, and $4,000. The interest should be added to the
balance and output in table format as shown in the supplied sample. LiFiUnit4Ch13.java
o Instantiate an investor1 object using a two parameter constructor
passing the account number 1001 and the initial balance of $2,000
o Instantiate an investor2 object using a two parameter constructor
passing the account number 2001 and the initial balance of $4,000
o Get input for interest rate (in the format .08 for 8%) 45% Use class variable to set interest rate
o Output header as per sample showing interest rate
o Print the table using a for loop displaying the current month and calling: addInterest() to add the monthly interest for each iteration getBalance() to display the current balance (See sample) Output results for 15 months.
o Print the interest earned as shown in the sample for each investor
utilizing a printf statement. Don’t hard code the interest earned, or
interest rate.
Sample output is provided below. Be sure to mimic it exactly except for values will
change based on the interest rate entered.
LiFiUnit4Ch13Investor.java
o All variables should be declared private.
o Declare a class variable called interestRate (This will hold the annual
interest rate)
o Declare a constant called ACCOUNT_NUMBER
o Declare an instance variable called balance
o Provide a class method that will be used to set the annual interest rate
o Provide a two parameter constructor to initialize the constant account
number and balance
o Provide an addInterest() method to update the balance based on the
interestRate entered in the driver. Add the interest using (balance * interestRate / 12) 45% NOTE: Complete your activity and submit it by clicking “Submit Assignment”
Total Percentage
Sample
Your output will vary based on interest rate entered. 100%

Attachments:

Answers

(11)
Status NEW Posted 26 Apr 2017 01:04 AM My Price 9.00

-----------

Not Rated(0)