Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n

Have Programming Question? Ask it here!
 
 
 


Amit
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n
1 Answer(s)      3 years and 4 months ago
Posted in : Java Beginners


write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n


Advertisement
View Answers

March 29, 2011 at 11:07 AM


import java.util.*;
class Investment
{
    public static void main(String[] args) 
    {
        Scanner input=new Scanner(System.in);
        System.out.print("Enter the value of p: ");
        double p=input.nextDouble();

        System.out.print("Enter the value of r: ");
        double r=input.nextDouble();

        System.out.print("Enter the value of n: ");
        double n=input.nextDouble();

        double v1=1+r;
        double v2=Math.pow(v1,n);
        double v=p*v2;
        Double d=new Double(v);
        System.out.println(d);
    }
}


Related Tutorials/Questions & Answers:
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n  write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n
write a program to demonstrate wrapper class and its methods......
write a program to demonstrate wrapper class and its methods......  write a program to demonstrate wrapper class and its methods
Advertisements
write following program
write following program  Q1 What is the difference between single...-threading. Explain with examples Q2 Write a java applet that takes your name through a parameter from the HTML file and displays it Q3 Write a short note
Wrapper Class
Wrapper Class  what is wrapper class in java and why we use it  ... the following link: Wrapper Class Thanks   Hi Friend, Wrapper class... further. For more information, visit the following link: Wrapper Class Thanks
wrapper class
wrapper class  list wrapper class methods
wrapper class
wrapper class  wrapper class methods
wrapper class
wrapper class  why wrapper class does not have a default constructor
wrapper class.
wrapper class.  Write short note on character wrapper class.   Java Character Wrapper class The Character class wraps a value of the primitive type char in an object. An object of type Character contains a single field
Java Wrapper Class Example
Java Wrapper Class Example In this section we will read about how to use... type has the corresponding wrapper class. These wrapper classes belongs... respective wrapper class : Primitive Data Type Wrapper Class boolean
write a java program that implements the following classes:
write a java program that implements the following classes:  write a java program that implements the following classes: A) a) Point in the Cartesian... implements the following methods 1)getArea() method. 2)getVolume() method. B
write a program in C to print following triangles on the screen
write a program in C to print following triangles on the screen  write a program in C to print following triangles on the screen
Wrapper Class - Java Beginners
Wrapper Class  What is Wrapper class? Why are they use
Write a program named InternetCharge_YourLastName that do the following:
Write a program named InternetCharge_YourLastName that do the following: ... per month unlimited access is provided. Write a program named InternetCharge_YourLastName that do the following: *display the menu as follow: 1. Package A 2
Write a java program that prints out the following menu???
Write a java program that prints out the following menu???  Write a java program that prints out the following menu. Auser can interact with the menu... another input. Menu : 1. Find min between 3 numbers using (Math.min). 2. Get
Write a program that makes use of a class called Employee that will calculate an employee's weekly paycheque.
Write a program that makes use of a class called Employee that will calculate an employee's weekly paycheque.  Write a program that makes use... your class based on the UML diagram to the right as well as the following notes
A program in Java to evaluate APL expressions.
to left For example: 1+23 = 7 but 23+1 =8 4-2-1 = 3 (same as 4 - (2-1)) Portion enclosed in braces evaluated first as in (2*3)+1 which is 7. Write a program...A program in Java to evaluate APL expressions.  APL is a programming
wrapper class concept
wrapper class concept  Write a Java class that stores an integer item id, a string item name and a float price. Store all these in a String member Variable, separated by a space delimiter. Use an overloaded method to add
Wrapper Class - Java Beginners
Wrapper Class  Please explain the above question on Wrapper class with some examples
Use of wrapper objects - Java Interview Questions
Use of wrapper objects  What is the role & use of Java wrapper objects?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/wrapper-class/ Thanks
Character Wrapper Class.
Character Wrapper Class.  what are Mirrored Unicode Characters?? and whats the use of "isMirrored(ch);method ??.where ch is any character argument..!!   Unicode is capable of representing many languages, including those
write a program to use for loop print **********========== in c language
write a program to use for loop print **********========== in c language  write a program to use for loop print **========== in c language
Write a java program that prints the decimal representation in reverse. (For example n=173,the program should print 371.)c
Write a java program that prints the decimal representation in reverse. (For example n=173,the program should print 371.)c  class rose { int n; int i; rose(int n,int i) { n=173; i=371; } void out { System.out.println
java-wrapper class
java-wrapper class  dear people, may i know how to convert primitive data type into corresponding object using wrapper class with example please!!!   public class IntToIntegerExample { public static void
Examples of Wrapper Class
Examples of Wrapper Class In this page we are giving you the links of tutorials on wrapper classes in Java. Wrapper classes are the classes present...) char 8) boolean Following are the example of wrapper classes in Java. 
Wrapper Character class.
Wrapper Character class.  How do the methods 'isIndentifierIgnorable(ch)' and 'isISOControl(ch)' work?? while workin with 'Character' wrapper class... no-break space '\uFEFF' Example: public class IsIdentifierIgnorableExample
write a java program to print marklist of "n " students. input Register number, name and marks of three subjects.
write a java program to print marklist of "n " students. input Register number, name and marks of three subjects.  write a java program to print marklist of "n " students. input Register number, name and marks of three subjects
Use of write method of CheckedOutputStream class in java.
Use of write method of CheckedOutputStream class in java. In this tutorial, we will discuss the use of write(int b) method of CheckedOutputStream class... to use write(int b) method of CheckedOutputStream class. The FileInputStream class
Listener refused the connectio n with the following error
Listener refused the connectio n with the following error  Hi I am getting the following error while trying to connect oracle database. I... the connection with the following error: ORA-12505, TNS:listener does not currently know
Quadratic Equation - Java Beginners
to solve an equation (y/n)? y Enter a: 1 Enter b: -5 Enter c: 6 Root1: 2.0 Root2: 3.0 Do you want to solve an equation (y/n)? y Enter a: 1 Enter b: -1...Quadratic Equation  Write a program that will determine the roots
\wrapper
\wrapper  Hands on Exercise on Wrapper Class: Write a Java code that converts integer to Integer converts Integer to String converts String to integer converts int to String converts String to Integer converts Integer
\wrapper
\wrapper  Hands on Exercise on Wrapper Class: Write a Java code that converts integer to Integer converts Integer to String converts String to integer converts int to String converts String to Integer converts Integer
\wrapper
\wrapper  Hands on Exercise on Wrapper Class: Write a Java code that converts integer to Integer converts Integer to String converts String to integer converts int to String converts String to Integer converts Integer
wrapper classes
the following link: Wrapper Class...wrapper classes  Explain wrapper classes and their use?   Java Wrapper Class Wrapper class is a wrapper around a primitive data type
write a program
write a program  write a program add 2 no.s without use arithmetic,unary operaters in java
quadratic equation
quadratic equation  program to find roots of a quadratic equation?   Hi Friend, Try the following code: import java.util.*; class...); System.out.println("Quadratic Equation is ax2+bx+c"); System.out.println("Enter value
HTTPClient Delete Method program ( for REST API to delete a user )
HTTPClient Delete Method program ( for REST API to delete a user )  HI Friends, I am trying a HTTP delete method for creating REST API in java. can any one provide me a HTTPClient Delete method program for reference. Please
please tell me what is ment by wrapper class in java........
please tell me what is ment by wrapper class in java........  what is ment by wrapper class in java
make a program
make a program  GoodEmployee is defined who has ALL the following properties: He should be married. He should have 2 or less than 2 children. His... two times. The name of one of his children should be "Raja" Write a method
Wrapper Classes
Primitive Wrapper Class In this section you will learn about Wrapper classes.... Wrapper class is a wrapper around a primitive data type. It represents... can be represented as a Boolean class instance. All of the primitive wrapper
need a java program for the following
need a java program for the following  Write a java program with three horizontal sliders. Name the sliders, the first one as red, the second one as green and the third one as blue. You design the program such that on varying
C program to print the following
C program to print the following  Hello, Some one help me with a "C Program" to print the following as output: 4444444 4333334..., that is why I choosed Java Beginners, but please give me a C program
Wrapper Class in Java
that holds the value 10. Whereas, object of a Wrapper Integer class can be created...(); Example of Wrapper Class in Java: How to insert an element at the specified... Wrapper Classes provide object methods for the eight primitive data types
Write a program in java...
Write a program in java...  Hi, friends Please, can you help me? Q1: Write a program in java to simulate a calculator. Your program should take two... to enter an integer number. Write a program in java to find the factorial
how to make following pyramid using loop
how to make following pyramid using loop   1 212 32123 4321234... that displays the following pattern: 1 212 32123 4321234 543212345 4321234 32123 212 1 class Pattern{ public static void main(String
Twitter REST API
Twitter REST API  While writing a program to post the tweet into twitter i am getting following error: The Twitter REST API v1 is no longer active..., Use the latest twitter4j-core-3.0.4.jar file. Thanks
How to pass and catch HTML parameters to a Java program using REST services?(without using servlet/jsp)
How to pass and catch HTML parameters to a Java program using REST services... and catch HTML parameters to a Java program using REST services?(without using... REST services. In that it uses hibernate criteria to check whether username
Java find the roots of quadratic equation
. And this program is implemented to find the roots of the quadratic equation. The given... of the equation. Example: import java.util.*; class QuadraticEquation { public static...); System.out.print("Do you want to solve an equation (y/n): "); String st=input.next
How to Read file line by line in Java program
. Now first thing a program has to do is to find the file. For this we use FileInputStream class. FileInputStream class extends the java.io.InputStream. It reads a file in bytes. BufferedReader class extends java.io.Reader. It reads
can we add primitive data to wrapper class object
can we add primitive data to wrapper class object  Hi, Here is my code: class Myclass{ public static void main(String args[]){ int i=2; Integer a= new Integer(3); a=a+i; System.out.println("a"+a); } } Thanks   Hello
write a program in java.
write a program in java.  arrange the natural n umber in 5x5 matrix...; public class NumberSpiral{ public static void main(String[] args) { int n=5; int i, s = n,x=0, y=0; int arr [][]= new int [n][n]; i=n*n; while(i>=1
Advertisements
 

 

 

DMCA.com