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

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)      6 years and 5 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

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);
}
}
```

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
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
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
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
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
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
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
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
Wrapper Class - Java Beginners
Wrapper Class  What is Wrapper class? Why are they use
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
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
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
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
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
Wrapper Class - Java Beginners
Wrapper Class  Please explain the above question on Wrapper class with some examples
write a program
write a program  write a program add 2 no.s without use arithmetic,unary operaters in java
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 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
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.
core java code for following program
games. Write a program that will track all the details of this hosting.... The following are the guidelines while writing this program Only command line based... the program. Use Collections Framework. Apply Object Oriented programming principles
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
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