Write two programs that tracks an investment

Assignment Help JAVA Programming
Reference no: EM132096084

Please help with this programming question involving, Composition and Aggregation, Inheritance, and Constructors in a Subclass.

Please make sure it compiles in java. The files must be called LIFIUnit4Ch13.java and LIFIUnit4Ch13investor.java Basic

Requirements: Write two programs that tracks an investment for 1 person based on the input of an interest rate.

The initial balance should be $2,000. The interest should be added to the balance and output in table format. LiFiUnit4Ch13.java

o Instantiate an investor1 object using a two parameter constructor passing the account number 1001 and the initial balance of $2,000 oGet input for interest rate (in the format .08 for 8%)

o Output header as per sample showing interest rate

o Print the table using a for loop displaying the current month and calling: ? getBalance() to display the current balance (See sample) 45% ? addInterest() to add the monthly interest for each iteration 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 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)

Reference no: EM132096084

Questions Cloud

What is the mean of the data : Suppose that we have the data {x1, x2, ..., xn} such that x1=x2=...=xn=3. What is the mean of the data?
Construct the confidence interval for the population : Can someone please help me understand how to use a standard normal table to find the positive critical value that corresponds to a tail area of 0.025
Find the maxima set from the given set of points : By applying Maxima Set algorithm, find the maxima set from the following set of points:
Rephrase the given paragraph below : Hollywood's blockbuster cultural colonialism presence led by multimedia conglomerates such as viacom.
Write two programs that tracks an investment : Write two programs that tracks an investment for 1 person based on the input of an interest rate.
Why gateways are used during mail transfer : Why gateways are used during mail transfer?
When jameel compiles his program : When Jameel compiles his program, the compiler return a syntax error on the above statement. Why?
Encode the decoded sequence using the same initial : Encode the decoded sequence using the same initial dictionary. Does your answer match the sequence given above.
Use the internet to research oauth : CP5603 - Advanced E-Security - improve your critical thinking and problem solving skills, as well as your information literacy skills

Reviews

Write a Review

JAVA Programming Questions & Answers

  Do you want to play the addition quiz

Generate two random single-digit integers - Prompt the student to answer "what is number1 + number2?"

  Write an application that accepts a users password

Write an application that accepts a user's password from the keyboard. When the entered password has fewer than six characters, more than 10 characters, or does not contain at least one letter and one digit.

  Find how many strings in a have exactly three 5s

Let A be the set of all strings of decimal digits of length five. For example, 00312, 99999, and 19483 are strings in A.

  Consider the game matrix

Consider the following game in matrix form with two players. Payoffs for the row player Izzy are indicated first in each cell, and payoffs for the column player Jack are second.

  Program that asks how many automobiles are to be described

Write a program that asks the user how many automobiles are to be described, and for each automobile it inputs the user's selection of make and color.

  Develop a java application for the local library

Develop a Java application for the local library as part of an upgrade initiative. As in all libraries, this is a place where one can check out books.

  Rock-paper-scissors :- java problem

Design decision marks are based on how you implemented our programs/classes.

  Develop class which implements interface

Let the ADT called SquareMatrix. (The matrix can be represented by 2-D array of ints w/ n rows and n columns.) Write specification for ADT as Java interface. Develop the class which implements interface.

  Write a program that will store the celtics

Write a program that will store the Celtics (or your favorite basketball team) roster in an array - You will then loop through the array to display each player

  Calculates and displays the mortgage payment amount

Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amou..

  Implement a class person with two fields name

Implement a class Person with two fields name and age, and a class Car with three fields - implement a class that saves the details of the person.

  Implement elliptic curve encryption - decryption in java

Implement Elliptic Curve encryption - decryption in java. Specifically, your program will read parameters, plaintext and ciphertextfrom a file

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd