SlideShare a Scribd company logo
1 of 2
Download to read offline
public class Interest{
double interest(double rate, double amount){
return amount+(amount*rate);
}
double totalSaving(int months,double monthly,double rate){
double yearly=rate/12;
for(int i=1;i<=months;i++){
System.out.print("After Month "+i+" Amount ");
monthly=interest(yearly,monthly);
System.out.println(monthly);
}
}
public static void main(String [] args){
Interest i=new Interest();
i.totalSaving(12,100,0.5)
}
}
Solution
public class Interest{
double interest(double rate, double amount){
return amount+(amount*rate);
}
double totalSaving(int months,double monthly,double rate){
double yearly=rate/12;
for(int i=1;i<=months;i++){
System.out.print("After Month "+i+" Amount ");
monthly=interest(yearly,monthly);
System.out.println(monthly);
}
}
public static void main(String [] args){
Interest i=new Interest();
i.totalSaving(12,100,0.5)
}
}

More Related Content

Similar to public class Interest{double interest(double rate, double amount){.pdf

This is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfThis is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfindiaartz
 
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfThe solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfaparnatiwari291
 
Java programI made this Account.java below. Using the attached cod.pdf
Java programI made this Account.java below. Using the attached cod.pdfJava programI made this Account.java below. Using the attached cod.pdf
Java programI made this Account.java below. Using the attached cod.pdffathimafancy
 
C# Programming. Using methods to call results to display. The code i.pdf
C# Programming. Using methods to call results to display. The code i.pdfC# Programming. Using methods to call results to display. The code i.pdf
C# Programming. Using methods to call results to display. The code i.pdffatoryoutlets
 
In JAVA Write a program that uses a two-dimensional array to sto.pdf
In JAVA Write a program that uses a two-dimensional array to sto.pdfIn JAVA Write a program that uses a two-dimensional array to sto.pdf
In JAVA Write a program that uses a two-dimensional array to sto.pdfinfo309708
 
10 awt event model
10 awt event model10 awt event model
10 awt event modelBayarkhuu
 
package employeeType.employee;public class Employee {    private.pdf
package employeeType.employee;public class Employee {    private.pdfpackage employeeType.employee;public class Employee {    private.pdf
package employeeType.employee;public class Employee {    private.pdfsharnapiyush773
 
enum_comp_exercicio01.docx
enum_comp_exercicio01.docxenum_comp_exercicio01.docx
enum_comp_exercicio01.docxMichel Valentim
 
The Effective Developer - Work Smarter, Not Harder
The Effective Developer - Work Smarter, Not HarderThe Effective Developer - Work Smarter, Not Harder
The Effective Developer - Work Smarter, Not HarderSven Peters
 
import java.util.;public class Program{public static void.pdf
import java.util.;public class Program{public static void.pdfimport java.util.;public class Program{public static void.pdf
import java.util.;public class Program{public static void.pdfoptokunal1
 
Easy practice with current timemillis method
Easy practice with current timemillis methodEasy practice with current timemillis method
Easy practice with current timemillis methodNooria Esmaelzade
 
can you add a delete button and a add button to the below program. j.pdf
can you add a delete button and a add button to the below program. j.pdfcan you add a delete button and a add button to the below program. j.pdf
can you add a delete button and a add button to the below program. j.pdfsales88
 
Creating a Facebook Clone - Part XXIX.pdf
Creating a Facebook Clone - Part XXIX.pdfCreating a Facebook Clone - Part XXIX.pdf
Creating a Facebook Clone - Part XXIX.pdfShaiAlmog1
 
java program assigment -2
java program assigment -2java program assigment -2
java program assigment -2Ankit Gupta
 
Creating a Facebook Clone - Part XXXIV.pdf
Creating a Facebook Clone - Part XXXIV.pdfCreating a Facebook Clone - Part XXXIV.pdf
Creating a Facebook Clone - Part XXXIV.pdfShaiAlmog1
 
First few months with Kotlin - Introduction through android examples
First few months with Kotlin - Introduction through android examplesFirst few months with Kotlin - Introduction through android examples
First few months with Kotlin - Introduction through android examplesNebojša Vukšić
 
@author public class Person{   String sname, .pdf
  @author   public class Person{   String sname, .pdf  @author   public class Person{   String sname, .pdf
@author public class Person{   String sname, .pdfaplolomedicalstoremr
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Mario Fusco
 
Creating a Facebook Clone - Part XXIX - Transcript.pdf
Creating a Facebook Clone - Part XXIX - Transcript.pdfCreating a Facebook Clone - Part XXIX - Transcript.pdf
Creating a Facebook Clone - Part XXIX - Transcript.pdfShaiAlmog1
 

Similar to public class Interest{double interest(double rate, double amount){.pdf (20)

This is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfThis is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdf
 
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdfThe solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
 
Method overriding in java
Method overriding in javaMethod overriding in java
Method overriding in java
 
Java programI made this Account.java below. Using the attached cod.pdf
Java programI made this Account.java below. Using the attached cod.pdfJava programI made this Account.java below. Using the attached cod.pdf
Java programI made this Account.java below. Using the attached cod.pdf
 
C# Programming. Using methods to call results to display. The code i.pdf
C# Programming. Using methods to call results to display. The code i.pdfC# Programming. Using methods to call results to display. The code i.pdf
C# Programming. Using methods to call results to display. The code i.pdf
 
In JAVA Write a program that uses a two-dimensional array to sto.pdf
In JAVA Write a program that uses a two-dimensional array to sto.pdfIn JAVA Write a program that uses a two-dimensional array to sto.pdf
In JAVA Write a program that uses a two-dimensional array to sto.pdf
 
10 awt event model
10 awt event model10 awt event model
10 awt event model
 
package employeeType.employee;public class Employee {    private.pdf
package employeeType.employee;public class Employee {    private.pdfpackage employeeType.employee;public class Employee {    private.pdf
package employeeType.employee;public class Employee {    private.pdf
 
enum_comp_exercicio01.docx
enum_comp_exercicio01.docxenum_comp_exercicio01.docx
enum_comp_exercicio01.docx
 
The Effective Developer - Work Smarter, Not Harder
The Effective Developer - Work Smarter, Not HarderThe Effective Developer - Work Smarter, Not Harder
The Effective Developer - Work Smarter, Not Harder
 
import java.util.;public class Program{public static void.pdf
import java.util.;public class Program{public static void.pdfimport java.util.;public class Program{public static void.pdf
import java.util.;public class Program{public static void.pdf
 
Easy practice with current timemillis method
Easy practice with current timemillis methodEasy practice with current timemillis method
Easy practice with current timemillis method
 
can you add a delete button and a add button to the below program. j.pdf
can you add a delete button and a add button to the below program. j.pdfcan you add a delete button and a add button to the below program. j.pdf
can you add a delete button and a add button to the below program. j.pdf
 
Creating a Facebook Clone - Part XXIX.pdf
Creating a Facebook Clone - Part XXIX.pdfCreating a Facebook Clone - Part XXIX.pdf
Creating a Facebook Clone - Part XXIX.pdf
 
java program assigment -2
java program assigment -2java program assigment -2
java program assigment -2
 
Creating a Facebook Clone - Part XXXIV.pdf
Creating a Facebook Clone - Part XXXIV.pdfCreating a Facebook Clone - Part XXXIV.pdf
Creating a Facebook Clone - Part XXXIV.pdf
 
First few months with Kotlin - Introduction through android examples
First few months with Kotlin - Introduction through android examplesFirst few months with Kotlin - Introduction through android examples
First few months with Kotlin - Introduction through android examples
 
@author public class Person{   String sname, .pdf
  @author   public class Person{   String sname, .pdf  @author   public class Person{   String sname, .pdf
@author public class Person{   String sname, .pdf
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
 
Creating a Facebook Clone - Part XXIX - Transcript.pdf
Creating a Facebook Clone - Part XXIX - Transcript.pdfCreating a Facebook Clone - Part XXIX - Transcript.pdf
Creating a Facebook Clone - Part XXIX - Transcript.pdf
 

More from Ankitagarwaleleraipu

A is correct. Public and private community strings are used within S.pdf
A is correct. Public and private community strings are used within S.pdfA is correct. Public and private community strings are used within S.pdf
A is correct. Public and private community strings are used within S.pdfAnkitagarwaleleraipu
 
4 ansit is periodic signal andSolution4 ansit is periodic .pdf
4 ansit is periodic signal andSolution4 ansit is periodic .pdf4 ansit is periodic signal andSolution4 ansit is periodic .pdf
4 ansit is periodic signal andSolution4 ansit is periodic .pdfAnkitagarwaleleraipu
 
1. The smart phone, computer, navigation system and digital scanner .pdf
1. The smart phone, computer, navigation system and digital scanner .pdf1. The smart phone, computer, navigation system and digital scanner .pdf
1. The smart phone, computer, navigation system and digital scanner .pdfAnkitagarwaleleraipu
 
1-They have terrestrial adaptation and dominant sporophytic phase..pdf
1-They have terrestrial adaptation and dominant sporophytic phase..pdf1-They have terrestrial adaptation and dominant sporophytic phase..pdf
1-They have terrestrial adaptation and dominant sporophytic phase..pdfAnkitagarwaleleraipu
 
What does absense of MHC Class I indicateAlmost all nucleated cel.pdf
What does absense of MHC Class I indicateAlmost all nucleated cel.pdfWhat does absense of MHC Class I indicateAlmost all nucleated cel.pdf
What does absense of MHC Class I indicateAlmost all nucleated cel.pdfAnkitagarwaleleraipu
 
The probabilities must add up to one. Add the ones you have and su.pdf
The probabilities must add up to one. Add the ones you have and su.pdfThe probabilities must add up to one. Add the ones you have and su.pdf
The probabilities must add up to one. Add the ones you have and su.pdfAnkitagarwaleleraipu
 
The most likely F1 will be the one that is made from 4 and 5. This i.pdf
The most likely F1 will be the one that is made from 4 and 5. This i.pdfThe most likely F1 will be the one that is made from 4 and 5. This i.pdf
The most likely F1 will be the one that is made from 4 and 5. This i.pdfAnkitagarwaleleraipu
 
Subculturing or passage is the method of preserving or continuing th.pdf
Subculturing or passage is the method of preserving or continuing th.pdfSubculturing or passage is the method of preserving or continuing th.pdf
Subculturing or passage is the method of preserving or continuing th.pdfAnkitagarwaleleraipu
 
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdf
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdfPhototaxisthe Phenomenon of movement of motile unicellular organis.pdf
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdfAnkitagarwaleleraipu
 
Miller indices                     It is defined as by considerin.pdf
Miller indices                     It is defined as by considerin.pdfMiller indices                     It is defined as by considerin.pdf
Miller indices                     It is defined as by considerin.pdfAnkitagarwaleleraipu
 
Marijuana is also called as cannabis and it is a preparation of cann.pdf
Marijuana is also called as cannabis and it is a preparation of cann.pdfMarijuana is also called as cannabis and it is a preparation of cann.pdf
Marijuana is also called as cannabis and it is a preparation of cann.pdfAnkitagarwaleleraipu
 
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdf
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdfIHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdf
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdfAnkitagarwaleleraipu
 
I have the answer ready in paint but i am not able to upload. 1) F.pdf
I have the answer ready in paint but i am not able to upload. 1) F.pdfI have the answer ready in paint but i am not able to upload. 1) F.pdf
I have the answer ready in paint but i am not able to upload. 1) F.pdfAnkitagarwaleleraipu
 
homedesigninsertanimationsdevelopmentSolutionhomedes.pdf
homedesigninsertanimationsdevelopmentSolutionhomedes.pdfhomedesigninsertanimationsdevelopmentSolutionhomedes.pdf
homedesigninsertanimationsdevelopmentSolutionhomedes.pdfAnkitagarwaleleraipu
 
C is correct. DHCP is a statefull method of configuring IPv6 address.pdf
C is correct. DHCP is a statefull method of configuring IPv6 address.pdfC is correct. DHCP is a statefull method of configuring IPv6 address.pdf
C is correct. DHCP is a statefull method of configuring IPv6 address.pdfAnkitagarwaleleraipu
 
B) The energy required to remove an electron from an atomSolutio.pdf
B) The energy required to remove an electron from an atomSolutio.pdfB) The energy required to remove an electron from an atomSolutio.pdf
B) The energy required to remove an electron from an atomSolutio.pdfAnkitagarwaleleraipu
 

More from Ankitagarwaleleraipu (20)

A is correct. Public and private community strings are used within S.pdf
A is correct. Public and private community strings are used within S.pdfA is correct. Public and private community strings are used within S.pdf
A is correct. Public and private community strings are used within S.pdf
 
4 ansit is periodic signal andSolution4 ansit is periodic .pdf
4 ansit is periodic signal andSolution4 ansit is periodic .pdf4 ansit is periodic signal andSolution4 ansit is periodic .pdf
4 ansit is periodic signal andSolution4 ansit is periodic .pdf
 
3030Solution3030.pdf
3030Solution3030.pdf3030Solution3030.pdf
3030Solution3030.pdf
 
5Solution5.pdf
5Solution5.pdf5Solution5.pdf
5Solution5.pdf
 
1. The smart phone, computer, navigation system and digital scanner .pdf
1. The smart phone, computer, navigation system and digital scanner .pdf1. The smart phone, computer, navigation system and digital scanner .pdf
1. The smart phone, computer, navigation system and digital scanner .pdf
 
1-They have terrestrial adaptation and dominant sporophytic phase..pdf
1-They have terrestrial adaptation and dominant sporophytic phase..pdf1-They have terrestrial adaptation and dominant sporophytic phase..pdf
1-They have terrestrial adaptation and dominant sporophytic phase..pdf
 
(1)Solution(1).pdf
(1)Solution(1).pdf(1)Solution(1).pdf
(1)Solution(1).pdf
 
What does absense of MHC Class I indicateAlmost all nucleated cel.pdf
What does absense of MHC Class I indicateAlmost all nucleated cel.pdfWhat does absense of MHC Class I indicateAlmost all nucleated cel.pdf
What does absense of MHC Class I indicateAlmost all nucleated cel.pdf
 
The probabilities must add up to one. Add the ones you have and su.pdf
The probabilities must add up to one. Add the ones you have and su.pdfThe probabilities must add up to one. Add the ones you have and su.pdf
The probabilities must add up to one. Add the ones you have and su.pdf
 
The most likely F1 will be the one that is made from 4 and 5. This i.pdf
The most likely F1 will be the one that is made from 4 and 5. This i.pdfThe most likely F1 will be the one that is made from 4 and 5. This i.pdf
The most likely F1 will be the one that is made from 4 and 5. This i.pdf
 
Subculturing or passage is the method of preserving or continuing th.pdf
Subculturing or passage is the method of preserving or continuing th.pdfSubculturing or passage is the method of preserving or continuing th.pdf
Subculturing or passage is the method of preserving or continuing th.pdf
 
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdf
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdfPhototaxisthe Phenomenon of movement of motile unicellular organis.pdf
Phototaxisthe Phenomenon of movement of motile unicellular organis.pdf
 
Miller indices                     It is defined as by considerin.pdf
Miller indices                     It is defined as by considerin.pdfMiller indices                     It is defined as by considerin.pdf
Miller indices                     It is defined as by considerin.pdf
 
Marijuana is also called as cannabis and it is a preparation of cann.pdf
Marijuana is also called as cannabis and it is a preparation of cann.pdfMarijuana is also called as cannabis and it is a preparation of cann.pdf
Marijuana is also called as cannabis and it is a preparation of cann.pdf
 
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdf
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdfIHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdf
IHD = 1 Therefore there can be only 1 -bond or ring. The two signals.pdf
 
I have the answer ready in paint but i am not able to upload. 1) F.pdf
I have the answer ready in paint but i am not able to upload. 1) F.pdfI have the answer ready in paint but i am not able to upload. 1) F.pdf
I have the answer ready in paint but i am not able to upload. 1) F.pdf
 
homedesigninsertanimationsdevelopmentSolutionhomedes.pdf
homedesigninsertanimationsdevelopmentSolutionhomedes.pdfhomedesigninsertanimationsdevelopmentSolutionhomedes.pdf
homedesigninsertanimationsdevelopmentSolutionhomedes.pdf
 
eSolutione.pdf
eSolutione.pdfeSolutione.pdf
eSolutione.pdf
 
C is correct. DHCP is a statefull method of configuring IPv6 address.pdf
C is correct. DHCP is a statefull method of configuring IPv6 address.pdfC is correct. DHCP is a statefull method of configuring IPv6 address.pdf
C is correct. DHCP is a statefull method of configuring IPv6 address.pdf
 
B) The energy required to remove an electron from an atomSolutio.pdf
B) The energy required to remove an electron from an atomSolutio.pdfB) The energy required to remove an electron from an atomSolutio.pdf
B) The energy required to remove an electron from an atomSolutio.pdf
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 

public class Interest{double interest(double rate, double amount){.pdf

  • 1. public class Interest{ double interest(double rate, double amount){ return amount+(amount*rate); } double totalSaving(int months,double monthly,double rate){ double yearly=rate/12; for(int i=1;i<=months;i++){ System.out.print("After Month "+i+" Amount "); monthly=interest(yearly,monthly); System.out.println(monthly); } } public static void main(String [] args){ Interest i=new Interest(); i.totalSaving(12,100,0.5) } } Solution public class Interest{ double interest(double rate, double amount){ return amount+(amount*rate); } double totalSaving(int months,double monthly,double rate){ double yearly=rate/12; for(int i=1;i<=months;i++){ System.out.print("After Month "+i+" Amount "); monthly=interest(yearly,monthly); System.out.println(monthly); } } public static void main(String [] args){ Interest i=new Interest();