Tuesday, February 18

Interest Fees Doubled Program in java



Hi ALL,

Here I wrote a program for Interest Fees Doubled Program  in java.

/**
 *
 * @author Balamurgan M
 */
public class TutionFeesDoubled {
   public static void main(String arg[]){
       System.out.println(" Tution fee calcualtion");
       int fee=10000;
       int year=1;
       int n=100;
       int amt=0;
       for(int i=1;i<=n;i++)
       {
           amt+=((fee*7)/100);
         //  System.out.println("amt "+amt);
           if(amt>=fee){
               System.out.println("Year to doubled the amount "+i);
               break;
           }
       }
   }
}

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...