Compute the future value of an investment pv at rate

Assignment Help Computer Engineering
Reference no: EM132214058

Question :

Write a static method called FV for a class called Finance that will compute the Future value of an investment PV at rate of return per period r, for n periods (FV=PV*(1+r)n).

The method you write will be used by the main program as follows:

public static void main(String[] args)

{

Scanner in = new Scanner(System.in);

System.out.print("Enter in the present value PV: ");

double PV = in.nextDouble();

System.out.print("Enter in the rate of return per period r:");

double r = in.nextDouble();

System.out.print("Enter in the number of periods n: ");

double n =in.nextDouble();

System.out.printf("Your FV value will be = %,.2f\n", Finance.I(PV,r,n));

}

Reference no: EM132214058

Questions Cloud

Write a subroutine called prune to search an array : Write a subroutine called PRUNE to search an array called raw_measurements that contains 16-bit unsigned integers.
Process a null-terminated string of decimal characters : Write a subroutine called REPLACE that processes a null-terminated string of decimal characters and replaces leading zeros with spaces.
Write a temperature class that represents temperatures : Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit.
Write a static method that takes two arraylists of integers : Write a static method named mergeSortedLists that takes two ArrayLists of Integers that are in increasing order and returns a new.
Compute the future value of an investment pv at rate : Write a static method called FV for a class called Finance that will compute the Future value of an investment PV at rate of return per period r.
List the patients who do not have a prescription : List the patients who do not have a prescription. The list should show the patient's name, gender, age, admission date, room, and illness description.
Write a second nested loop to display pattern b : Write a single program that uses two nested loops to display Patterns A and B.
Print the values of wheels for both objects using the access : Create two objects (car, bicycle) of this class. Set the wheels' to 4 and 2, respectively, for these objects using the "Mutator function.
Create three radio buttons that are used to select fruits : Write a snippet of Java code (not an entire program) to create three radio buttons that are used to select fruits: Pepperoni, Mushroom, and Sausage.

Reviews

Write a Review

Computer Engineering Questions & Answers

  A command-line parser to figure out what the user is trying

Your shell should use the fork system call and the execv system call (or one of its variants) to execute commands.

  What are the basic characteristics of a t-one line

How does a leased line service differ from POTS? What are the basic characteristics of a T-1 line? What are the basic services of a T-3 line?

  Write a function that will traverse a binary tree level

Write a function that will traverse a binary tree level by level. That is, the root level-by-level traversal is visited first, then the immediate children.

  What is the purpose of the database

Basic business rules need to be developed for cross-sales and up-sales. We will not worry about identifying the formulas for these recommendations.

  Design a 3 bit uniform quantizer

Design a 3-bit uniform quantizer (specify the decision boundaries and representation levels) for a source with a Laplacian pdf with a mean of 3 and a variance of 4.

  Describe techniques for develope prototype of user interface

Building on your initial user interface (UI) design mock-up of the organization's program UI. Describe techniques for developing prototypes of user interfaces.

  What are the major problems of nrz

What are the major problems of NRZ (Non-Return to Zero) encoding/signaling? Is there any case where it's use could be acceptable? explain.

  Write a function in matlab that takes as input the number n

Write a function in Matlab that takes as input the number n, a sparse matrix given as r, c, v, m, an n-component column vector b, and a tolerance tol.

  What is the windowing system of unix known as

What is the windowing system of UNIX known as? Name some interpretive languages available on UNIX systems. Name three notable Linux flavors.

  Write down the objective function

E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 8. Write down the objective function f(l, r) to be minimized, in terms of l and r. It should be equal to the surface area of each type of section, weighted by the appropriat..

  What is the expected running time of the methods

What is the expected running time of the methods for maintaining a maxima set if we insert n pairs such that each pair has lower cost and performance.

  How many failed logons were detected

How many failed logons were detected? What was the date/time shown at the top of the IIS log file you captured at the end of Part 2 of the lab?

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