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
Login         

View Questions and Answers by Category

Advertisements


 
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 9 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  wrapper class methods
wrapper class
wrapper class  list 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
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
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
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 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
\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
Advertisements
 

 

 

DMCA.com