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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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