Write a presentvaluecalculator class

Assignment Help JAVA Programming
Reference no: EM131591010

Practice with Computer Math

1) An annuity (sometimes called a reverse mortgage) is an account that yields a fixed payment every year until it is depleted. Typically, one makes a one-time deposit which then earns interest for a set number of years. Afterwards, a fixed amount is withdrawn (paid out) for a set number of years.

The initial deposit, called the present value of the annuity, is the amount that you would need to invest at a given interest rate so that the payments can be made.

The present value of an annuity (PVann) at the time of the first deposit can be calculated using the following formula:

presentValue = payment x (((1+i)n-1 - 1)/i)/((1+i)n-1 + 1)

where:

payment: periodic payment
i: periodic interest or compound rate
n: number of payments

What is the present value of an annuity that will pay out $10,000 in each of the next 20 years if the interest rate is 8 percent?

Write a PresentValueCalculator class to calculate the present value of an annuity for these values. Choose the appropriate date type for payment, i and n. Remember that you can use Math.pow(x, y) to calculate xy.

What is your program?

public class PresentValueCalculator
{
public static void main(String[] args)
{
}
}

2) Modify the program you created so that the user can provide the values for for payment, i and n through the console. Be sure to prompt the user for the appropriate input. The Scanner class has methods nextInt and nextDouble methods for converting user input to binary values for calculations.

Reference no: EM131591010

Questions Cloud

Discuss the safeassign originality-checking tool : As part of the Week 4 Discussion Board assignment, you will submit a MS Word document (.doc or.docx) containing the exact contents of each discussion board.
Which kind of science jobs are women more likely to be found : Which kind of science jobs are women more likely to be found in? What can be said about women's academic achievement in science & engineering?
Discuss the CSIRT concept : Write a one-page paper recommending the CSIRT concept to the President of Wilmington University.
Discuss the software applications and web-based applications : List several of the technical requirements placed on software applications (§ 1194.21) and web-based applications (§ 1194.22), then explain the purpose.
Write a presentvaluecalculator class : Write a PresentValueCalculator class to calculate the present value of an annuity for these values. Choose the appropriate date type for payment
A hidden epidemic of child abuse and neglect : One of the data points should be from your residential state. The others can be national statistics. Include why knowing this information is important.
Secondary voltage produced by a step-up transformed : What will be the secondary voltage produced by a step-up transformed which has 30 windings in the primary and 360 windings in the secondary coil if the input.
List and explain the methods for installing software : As a team, prepare a 7- to 10-slide Microsoft® PowerPoint® presentation that lists and explains the types of software testing approaches.
Writer a paper about nasa glenn research center in cleveland : Writer a three pages about NASA Glenn Research Center in Cleveland, Ohio. and plz follow just the 4 topics below: Overview about NASA (General).

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