Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

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

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 406 Weeks Ago, 1 Day Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 15 Sep 2017 My Price 9.00

Investment encapsulating

Write a class named Investment encapsulating the concept of an investment, assuming the investment has the following attributes:

the amount of the investment, and the interest rate at which the investment will be compounded.

Include a default constructor, an overload constructor, the accessors and mutators for each instance variable, the toString method and the equals method. Also include a method return the future value of the investment depending on how many years we hold it before selling it. Use the following formula for future value:

future value = investment * ( 1 + interest rate ) numberOfYears

This formula assumes annual compounding.

Write a client class that does the following:

Uses dialog boxes to ask the user to enter the amount of the investment and the interest rate.

Checks to see if the amount and rate are valid.

Amounts must be greater than zero and less than $20,000,000.00

Rates must be greater than zero and less than 50%

If either value is outside of the valid range the client should ask the user to enter a new valid value. The request should be made only for the invalid values (e.g. if the amount is valid and the rate is invalid your client should only ask the user to reenter the rate).

Your client should keep asking the user to reenter values until both values are valid.

All interaction with the user concerning data entry must be made with dialog boxes.

Once the user has entered valid values the client should print a table showing the future value of the investment for holding periods of one to twenty years inclusive.

This table should be printed to the console.

The table should include a header that displays the amount and interest rate

Each line in the body of the table should display the number of years the investment is held followed by the corresponding future value.

Make sure that this table is nicely formatted and that decimal points line up vertically.

All real number values should be displayed to two decimal place accuracy.

All dollar amounts should have $ signs.

All percentage values should have % signs.

After the table has been printed client should then provide additional code that completely tests of all of the methods that were not tested during the generation of the future value table (i.e. Your client class must completely test your user defined class, Investment ).

Answers

(5)
Status NEW Posted 15 Sep 2017 02:09 PM My Price 9.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)