+ 8
WAP to calculate simple interest by wrapper class in Java?
please help me friends!!!
9 Answers
+ 7
class Wrapper
{
public static void main(String args[])
{
float p=Float.parseFloat(args[0]);
System.out.println("Principle amount is: "+p);
float r= Float.parseFloat(args[1]);
System.out.println("rate is: "+r);
int t=Integer.parseInt(args[2]);
System.out.println("Enter Time: "+t);
float SI=(p*r*t)/100;
System.out.println("Simple Interest is: "+SI);
}
}
+ 7
but it will not run here, it will run on command prompt by taking input at runtime
+ 6
I got it
+ 6
thanks for asking...
+ 6
it was needed for my college assignment.
+ 5
I need code?
+ 5
finally I got it
0
Have you found a solution or do you want some code?
0
oh no problem