Representing an investment value and interest rate

Assignment Help JAVA Programming
Reference no: EM13707288

Program: Write a Java test program, all your code should be in the main method that asks the user for two numbers representing an investment value and interest rate.

Expect the user to enter the interest rate as a real number, so a rate of %6.5 would be entered as 0.065. Your program should evaluate the future value of the investment for 5, 10, 15, and 20 years. The formula for future value, using compounding interest, is as given:

fv = investment * (1 + interestRate)years

Please use JGrasp.(.java file)

Can someone show me how to write a proper code for this problem and how to complete it. Thanks

 

Reference no: EM13707288

Questions Cloud

Calculate the cube of a number : Write a program that will calculate the cube of a number. Do this by writing a user defined function that returns the cube of the value passed to it. Print out the results from main.
Program that will call a function called writedatatofile : Write a program that will call a function called writeDataToFile to prompt a user for their first name, last name and zip code, and print this information to a file called "UserData.txt".
Find the sum and difference for numbers : Write a program that prompts the user for two numbers, finds the sum and difference for those numbers and displays a descriptive label for each computation by calling two different functions. Use Function Prototypes.
What does the execute bit mean for a directory : What does the 'execute' bit mean for a directory? Show how the execute bit works for referencing files within directories. Does the execute bit need to be set for ANY directory on the path to a file you wish to reference?
Representing an investment value and interest rate : Write a Java test program, all your code should be in the main method that asks the user for two numbers representing an investment value and interest rate.
Prepare a new int[] variable and inititialize it : Prepare a new int[] variable and inititialize it to be a new int array with the given size to create random values use the random class import javautil.random inside the method create a new instance with: Random rand = new Random();
What is a data model and what is it purpose : What is a data model and what is it purpose and what is a prototype and what is its purpose - What is a use case, and what is its purpose?
Can you find the element of an array : We would like to determine whether a given array A has a majority element, and if so, find the element.
Prepare a program that takes the data from triangle : Prepare a program that takes the data from triangle.txt (supplied in this folder) and outputs a message indicating whether the triangle is a right triangle. The text file has data for three triangles.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What about percent values and currencies

List three debugging techniques, within the debugger, that can be used to locate logical error in the Java code. For each of these tools, explain what purpose it serves, and how it relates to the debugging process.

  Reimplement the labeledpoint class of exercise

Reimplement the LabeledPoint class of Exercise P9.12 by storing the location in a java.awt.Point object. Your toString method should invoke the toString method of the Point class.

  Write a program that will process the data file

Write a program that will process the data file to read the file and calculate the number of assistants and the average salary and the number of associates and the average salary

  A game of tic-tac-toe

A game of tic-tac-toe, two players (one the computer) take turns marking an available cell in a 3 X 3 grid (a two dimensional array) with their respective tokens (either and X or an O). When one player has placed three tokens in a horizontal

  Define a class called counter an object of this class is

define a class called counter. an object of this class is used to count things so it records a count that is a

  Bilinear and nearest neighbour algorithm in java

How to do bilinear and nearest neighbour algorithm in java. Show how to eliminate change in pixel aspect ratio in java.

  Directly cause thread to stop executing-thread execution

Which cannot directly cause a thread to stop executing? What is the name of the method used to start a thread execution?

  You need to prepare the java applet

If the typed number is valid, display a product description and price; otherwise, display an appropriate error message. Save the file as JProductFinder.java.

  Draw a uml diagram of each of the shapes

Draw a UML diagram of each of the Shapes, Rectangle and Square classes using the code that has been provided. Complete this using the examples that have been provide in the lecture slides - Sample program is provided that creates a list of shapes ..

  Implement a class person with two fields name and age

Implement a class Person with two fields name and age, and a class Car with three fields

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  The class constructor should accept an array

Write a class named TestScores. The class constructor should accept an array of test scores as its arguments. The class should have a method that returns the average of the test scores. If any test score in the array is negative or greater than 10..

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