+ 8

WAP to calculate simple interest by wrapper class in Java?

please help me friends!!!

14th Feb 2017, 3:59 PM
Ajay Agrawal
Ajay Agrawal - avatar
9 Respuestas
+ 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); } }
2nd Mar 2017, 8:13 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 7
but it will not run here, it will run on command prompt by taking input at runtime
3rd Mar 2017, 3:03 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 6
I got it
3rd Mar 2017, 3:00 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 6
thanks for asking...
3rd Mar 2017, 3:00 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 6
it was needed for my college assignment.
3rd Mar 2017, 3:03 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 5
I need code?
19th Feb 2017, 3:34 PM
Ajay Agrawal
Ajay Agrawal - avatar
+ 5
finally I got it
2nd Mar 2017, 8:13 PM
Ajay Agrawal
Ajay Agrawal - avatar
0
Have you found a solution or do you want some code?
17th Feb 2017, 8:34 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
oh no problem
3rd Mar 2017, 3:44 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar